Memory leak using detaching over Thread-Attributes

Rainer.Schiele@fiducia.de Rainer.Schiele@fiducia.de
Thu Mar 18 14:31:00 GMT 2004


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





More information about the Pthreads-win32 mailing list