FreeLibrary freeze the host application after using TTask in DLL.
FreeLibrary freeze the host application after using TTask in DLL.
How to solve?
Here is my procedure in DLL:
procedure Test;
begin
TTask.Run(
procedure
begin
Sleep(300);
end);
end;
After calling Test in host app, call FreeLibrary will freeze the host app.
How to solve?
Here is my procedure in DLL:
procedure Test;
begin
TTask.Run(
procedure
begin
Sleep(300);
end);
end;
After calling Test in host app, call FreeLibrary will freeze the host app.
Comments
Post a Comment