[Lazarus] Memory leak in TThread class
Luca Olivetti
luca at wetron.es
Tue Oct 5 14:40:52 CEST 2010
En/na silvioprog ha escrit:
> Hi folks,
>
> I detected a small leak in the TThread class. I made a simple test and I
> sending in attached (or http://pastebin.com/aWNuHyDQ). To reproduce the
> leak, just open and close the demo.
That's probably because the thread has no chance to run (you create it
suspended and never resume it).
If you create it with suspended=false or resume it right after creating
it, there's no leak.
Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007
More information about the Lazarus
mailing list