Re: memory and thread leaks - WeOnlyDo Discussion board

Re: memory and thread leaks (General questions)

by Paul Draper, Wednesday, October 26, 2005, 17:19 (6967 days ago) @ wodSupport

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: