From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5692 invoked by alias); 10 May 2004 17:08:49 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 5677 invoked from network); 10 May 2004 17:08:48 -0000 Received: from unknown (HELO delsyne.ro) (213.157.171.89) by sourceware.org with SMTP; 10 May 2004 17:08:48 -0000 Received: from firebird ([192.168.100.79]) by delsyne.ro (8.12.8/8.12.8) with SMTP id i4AFlkgG007173 for ; Mon, 10 May 2004 18:47:51 +0300 Message-ID: <006701c436a6$3f0cc8d0$4f64a8c0@firebird> From: "George Mardale" To: Subject: DllMain not called Date: Mon, 10 May 2004 17:08:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2004/txt/msg00051.txt.bz2 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.