This is the mail archive of the
pthreads-win32@sourceware.org
mailing list for the pthreas-win32 project.
crash with pthreads after dlclose()
- From: Mario Emmenlauer <mario at emmenlauer dot de>
- To: pthreads-win32 at sourceware dot org
- Date: Mon, 07 Dec 2009 12:26:48 +0100
- Subject: crash with pthreads after dlclose()
Hi,
thank you for the pthreads-win32 project, its doing a great job
for us!
Currently we have an issue with a program crash on exit, which
seems to be related to pthreads. We are using FreeLibrary to close
a library, that uses pthreads internally. Since we do not call
pthreads directly, I don't know if I have to unregister/close/free
anything before calling FreeLibrary()?
The application crashes not at FreeLibrary(), but instead when it
exists normally.
Here is the top of the callstack, in case that helps:
pthreadVC2.dll!_ptw32_callUserDestroyRoutines() + 0xd8 bytes C
pthreadVC2.dll!_pthread_win32_thread_detach_np() + 0x2c bytes C
Thanks, and all the best,
Mario
--
Dipl. Inf. Mario Emmenlauer Office: +41-(0)44-430-1106
Bitplane AG Fax: +41-(0)44-430-1101
Badenerstrasse 682 mailto: mario * emmenlauer.de
CH-8048 Zurich http://www.marssoft.de / http://www.xuvtools.org