I have found that using CreateAnonymousThread has resulted in a memory leak after the latest windows 10 update. Anyone else run into a similar issue?

I have found that using CreateAnonymousThread has resulted in a memory leak after the latest windows 10 update. Anyone else run into a similar issue?
(it was OK before)

used like e.g
TThread.CreateAnonymousThread(procedure ()
begin
try
//do something
except
on E: Exception do
MainForm.Memoerror.lines.add('error with thread '+E.Message);
end;

end).Start;

Comments

  1. it might be that this is a wild goose chase and it's something else that is causes a out of resources error in my program after the latest windows update. will keep investigating.

    ReplyDelete
  2. Brian Hamilton use Queue or Synchronize to schedule the main thread to add your lines

    ReplyDelete
  3. yeah, good idea, I should be doing that

    ReplyDelete

Post a Comment