Re: memory and thread leaks (General questions)
Hi,
I've done a bit more investigation.
The fact that I was running https wasn't relevant, I get the problem when its normal http aswell.
I also didn't mention that I am running under C++ builder 6
I am setting the Server->Threads property to FullThreads which according to the documentation means that each user that makes a request runs in its own thread.
If I set the property to NoThreads then I do not get the thread leak problems I am seeing, however I need to run using FullThreads.
This indicates to me that the thread being allocated to the User is not being tidied up. I can see the UserDisconnected event firing in the the Server. Should the User object and the thread be being destroyed when this event completes?
When should the thread be destroyed. Is there anything I can do in my code to make it free up the threads.
I have a small(ish) C++ builder App that I have zipped up and will send to you.
Thanks
Paul.
Complete thread:
- memory and thread leaks - Paul Draper, 2005-10-13, 10:47
- Re: memory and thread leaks - wodSupport, 2005-10-13, 13:37
- Re: memory and thread leaks - Paul Draper, 2005-10-13, 13:40
- Re: memory and thread leaks - wodSupport, 2005-10-13, 13:42
- Re: memory and thread leaks - Paul Draper, 2005-10-26, 17:19
- Re: memory and thread leaks - wodSupport, 2005-10-13, 13:42
- Re: memory and thread leaks - Paul Draper, 2005-10-13, 13:40
- Re: memory and thread leaks - wodSupport, 2005-10-13, 13:37