I am linked with "/noentry" as per the discussion in the Mixed Mode DLL
problem. There appears to be
4 steps:
- link with "/noentry"
- link with msvcrt.lib
- remove nochkclr.obj from linker dependencies
- add __DllMainCRTStartup@12 to Force Symbol References
I am not sure I am staticly linked or not, but what I am doing is a .NET
Class Library and I know where
were issues with Mixed Mode DLL's with Managed C++.
thanks
Paul
"Ted Miller" <te*@nwlink.com> wrote in message
news:10*************@corp.supernews.com...
Looks like you are somehow skipping the crt init. Are you statically
linked to the crt lib and linked /noentry?
--
"Paul Brun" <pb**********@pbrun.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hey guys,
I have narrowed down the location of the exception....it is occurring
within a method call within
the strtok function:
Within strtok.c, there is a call like the following:
_ptiddata ptd = _getptd();
then, within the _getptd() method (tidtable.c), we have this:
_ptiddata __cdecl _getptd (void)
{
_ptiddata ptd;
DWORD TL_LastError;
TL_LastError = GetLastError();
if ( (ptd = FLS_GETVALUE(__tlsindex)) == NULL )
{
.
.
}
.
.
.
}
The exception occurs within the "if" statement and I can't seem to step in
any further.
Any ideas.....
Thanks
Paul