Hi,
I noticed these memory leaks in the TROHTTPServer component.
I use RO SDK version 10.0.0.1511
Hi,
I noticed these memory leaks in the TROHTTPServer component.
I use RO SDK version 10.0.0.1511
Logged as bugs://D19157.
Hi,
Looks like thread doesn’t have enough time for terminating and destroying so it is considered as leaked.
lets free it manually on windows platform. on OSX Platform, manual destroying causes the EPrivilege
error.
pls update uROAsyncSocket.pas
as
procedure CleanupWorkers;
var
i: Integer;
lWorker: TROSocketWorkerThread;
begin
EnterCriticalSection(WorkerCS);
try
for i := Workers.Count - 1 downto 0 do begin
lWorker := TROSocketWorkerThread(Workers[i]);
{$IFDEF MSWINDOWS}
lWorker.Terminate;
sleep(1);
FreeOrDisposeOf(lWorker);
{$ELSE}
lWorker.FreeOnTerminate := True;
lWorker.Terminate;
{$ENDIF}
end;
finally
LeaveCriticalSection(WorkerCS);
end;
ROSwitchToThread;
end;
bugs://D19157 was closed as fixed.