This is the mail archive of the
pthreads-win32@sourceware.org
mailing list for the pthreas-win32 project.
Re: Memory leak with detached threads
- From: Giuliano Catrambone <giuliano dot catrambone at catrasoftware dot it>
- To: Stephen Croall <scroall at tibco dot com>
- Cc: pthreads-win32 at sources dot redhat dot com
- Date: Sun, 29 Oct 2006 22:10:40 +0100
- Subject: Re: Memory leak with detached threads
- References: <5D819E730A717F47BC9B256CCE55297001C410D6@NA-PA-VBE02.na.tibco.com>
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
-----------------------------------------------------------------