Memory leak with detached threads
Giuliano Catrambone
giuliano.catrambone@catrasoftware.it
Sun Oct 29 20:10:00 GMT 2006
Hi Stephen,
the initial version of the code was using pthread_detach() and I had
the same issue,
a leak about 4KB every 20 iterations.
Do you have some other ideas?
Thanks
giu
Stephen Croall wrote:
> DOH!
>
> Just realised that you are calling pthread_attr_setdetachstate(). You
> could change to calling pthread_detach() to see if the memory leak still
> happens. We use this call a lot in our code and have no problems with
> leaks.
>
> Steve.
>
>
>
--
-----------------------------------------------------------------
Giuliano Catrambone
Director, Professional Services
Open source projects:
http://sourceforge.net/projects/catralibraries/
http://sourceforge.net/projects/openstreaming/
CatraSoftware:
Home page: http://www.catrasoftware.it
Streaming page:
http://www.catrasoftware.it/Streaming/CatraStreamingPlatform.htm
Mobile +39.393.8816655
Fixed: +39.02.90377228
Skype: Catrambone Giuliano
msn: giulianocatrambone@hotmail.com
Jabber: giuliano.catrambone@Jabber.org
Yahoo: giuliano.catrambone
-----------------------------------------------------------------
More information about the Pthreads-win32
mailing list