This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

DllMain not called


Hi guys,

After successfully compiling the wince-port sources of pthreads-win32
(pthread-win32-snap-1999-05-30-WinCE) with embedded Visual C++ 3.0, I ran
into troubles when trying to use the resulting lib/dll.

Using the debugger, I managed to find out that the application crashes
(Access Violation error) in pthread_getspecific because the calling argument
_pthread_selfThreadKey is NULL. However, this global variable should have
been initialized in DllMain. But, to my surprise, DllMain is never called,
so _pthread_selfThreadKey is always NULL.

Is there a reason why DllMain is not called on wince?

Thanks for your time,
George.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]