This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
Memory leak using detaching over Thread-Attributes
- From: Rainer dot Schiele at fiducia dot de
- To: pthreads-win32 at sources dot redhat dot com
- Date: Thu, 18 Mar 2004 15:31:28 +0100
- Subject: Memory leak using detaching over Thread-Attributes
- Sensitivity:
Hello,
I'm encounter an problem that an memory leak occur (and also the Windows Handles
run out), when I detach an Thread with the Thread-Attributes on pthread_create
using pthread_attr_init and pthread_setdetachstate.
Using another approach creating an Thread with pthread_create (attr == NULL) and
calls then pthread_detach on the Thread-ID no leak occur.
I'm using Windows XP, MinGW-3.1.0-1, MSYS-1.0.9.
Looking in the code i found nothing special.
Any Hints?
Thanks Rainer