Board index » kylix » tthread's not getting freed
tthread's not getting freed
2003-07-03 01:45:43 AM
I'm going to post this in a few spots in hopes that someone else here has
encountered this problem and found a solution.
Basically I have an app that needs to use threads. It's a single codebase
meant to compile and run on both Win and RH. I've discovered that the
TThread.Free method does absolutely squat. The thread resources don't get
freed when this call is made and thusly just become one big memory leak. Now
this doesn't seem to be a huge problem when running on WinXP, etc... however
on RH after doing numerous tasks where theoretically threads should be
getting created and destroyed manymany times, RH runs out of resources to
create new threads and crashes.
This code is in a unit with no form associated with it, if this info will
Hopefully someone else here has at least run into this trouble and if I'm
luck has a suggested solution. Thanks!