Scenario
We have site in ASP.NET (C#) which gives call to Win32 dll (with MFC used - Native code). It works in debug mode. But when i used the same dll with published site, i get following exception.
Used P/Invoke to call functions from Win32 dll
Everything works fine if buffer length is kept low like -
TCHAR users[BUFSIZE] = {'0'}; where BUFSIZE = 9999
If we increase BUFSIZE = 99999, w3wp.exe crashes hard.
Any clues how can this be fixed?
Thanks,
Sachin
Following exception is thrown.
Faulting application name: w3wp.exe, version: 7.5.7600.16385, time stamp: 0x4a5bcd2b
Faulting module name: PTLicenseMgmnt.dll, version: 1.0.0.0, time stamp: 0x4c378b13
Exception code: 0xc00000fd
Fault offset: 0x00019bf7
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13