Thread Local Storage (TLS)

From: Max Mayer (mayer_max_at_web.de)
Date: 07/30/04


Date: Fri, 30 Jul 2004 12:45:16 +0200

Hi,

I get the following DebugBreak when I call TlsSetValue in DllMain at
DLL_PROCESS_ATTACH:
Coredll: DEBUGCHK failed in file ... .TlsAlloc was called successfully
before.

The source-code of the coredll includes the following debug check:
GetCurrentProcessId () == GetOwnerProcess ().
GetCurrentProcessId () != GetOwnerProcess (), when I load my user-DLL
from a stream-interface-driver-dll
so I get the debug failed message. If I load the same DLL from a user
program this message does not occur.

I could not find anything that there are any restrictions using TLS.

Thanks in advance

Max



Relevant Pages