You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Graham,
Under Windows and after closing the application a memory leak appear (ksInputList.pas)
after some digging I've found some way to fix this:
destructor TksInputList.Destroy;
...
begin
FScrollMonitor.Terminate;
Sleep(300); // Adding this line will fix this problem
...
Sleeping 300 exactly is because the creation of FScrollMonitor thread in the while loop sleeps 200
so after terminating it we have to wait until the thread get out from sleeping and terminates itself..
before code processed to:
for AItem in FItems do
begin
if AItem is TksInputListItemWithControl then
begin
c := (AItem as TksInputListItemWithControl).FControl;
c.parent := nil;
end;
end;
The text was updated successfully, but these errors were encountered:
Sniperxx
changed the title
destructor TksInputList.Destroy; var AItem: TksBaseInputListItem; c: TPresentedControl; begin FScrollMonitor.Terminate; Sleep(300); // Fix
ksInputList memory leak
May 11, 2022
Hi Graham,
Under Windows and after closing the application a memory leak appear (ksInputList.pas)
after some digging I've found some way to fix this:
Sleeping 300 exactly is because the creation of FScrollMonitor thread in the while loop sleeps 200
so after terminating it we have to wait until the thread get out from sleeping and terminates itself..
before code processed to:
The text was updated successfully, but these errors were encountered: