I have some VS 2005 C++/cli Win32 apps which are deployed on a Windows 2008 R2 platform. They run there as WoW64 processes and seem fine except for one problem. Intermittently, and for certain users, on exit the apps display a system error that says '<blah blah application> has stopped working. A problem caused the program to stop working correctly. Please close the program', with a 'Close the program' button (notwithstanding that I have closed the program and that seems to have caused the error). This error doesn't happen with the same users with the debug build of the apps, and I have found that even if I link the release builds of the apps with the debug CRT and MFC libraries (which are deployed along with my apps as side-by-side assemblies in my application's directory), the error does not happen either, so it seems to be something specific to the release versions of the CRT and MFC libraries. I have also found that the error is not happening in my application code, it happens after the app's WinMain has exitted. Any suggestions for the cause or for investigating a problem apparently located in the release CRT library code after WinMain has exitted? Thanks. See corresponding event log details below:
General
Faulting application name: <blah>.exe, version: 10.12.2013.0, time stamp: 0x52a754b0
Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f
Exception code: 0xc0000005
Fault offset: 0x000343d0
Faulting process id: 0x18dc
Faulting application start time: 0x01cef65987c3d1e5
Faulting application path: <blah>.exe
Faulting module path: C:\Windows\SysWOW64\ntdll.dll
Report Id: c899b444-624c-11e3-9ec6-0022649d547b
Details
- System
- Provider
[ Name] Application Error
- EventID 1000
[ Qualifiers] 0
Level 2
Task 100
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2013-12-11T10:12:48.000000000Z
EventRecordID 86821
Channel Application