Problems recompiling under VC.Net
-
Hey Guys, Yesterday I recompiled an MFC application in Visual C++.NET which had previously been built using VC6. Aside from a few casting issues, the compile seemed to work OK. However, the app will not execute. When I execute the app, the error I get is 0xC0000005: Access violation. The problem is that this exception is thrown before my app even gets into WinMain. The stack trace when the exception is raised is:-
NTDLL.DLL!_RtlRaiseStatus@4() + 0x24 NTDLL.DLL!_LdrpInitialize@12() + 0x15276 NTDLL.DLL!_KiUserApcDispatcher@20() + 0x7
When I take a look in the output Window after execution I get.First-chance exception at 0x77f92373 (NTDLL.DLL) in WMSClient.exe: 0xC0000005: Access violation writing location 0x00000010. First-chance exception at 0x7c59ba9d in WMSClient.exe: 0x000003E6: Invalid access to memory location. First-chance exception at 0x77f92373 (NTDLL.DLL) in WMSClient.exe: 0xC0000005: Access violation writing location 0x00000010. First-chance exception at 0x77fb17a4 (NTDLL.DLL) in WMSClient.exe: 0xC0000005: Access violation. Unhandled exception at 0x77fb17a4 (NTDLL.DLL) in WMSClient.exe: 0xC0000005: Access violation. The program '[1968] WMSClient.exe: Native' has exited with code 128 (0x80).
At first I thought it was maybe caused by one of the global variables causing problems but most of them are basic types. Those which are classes, I put a breakpoint in the constructor but it never gets called. Can anyone suggest anything else to look at? Cheers James -
Hey Guys, Yesterday I recompiled an MFC application in Visual C++.NET which had previously been built using VC6. Aside from a few casting issues, the compile seemed to work OK. However, the app will not execute. When I execute the app, the error I get is 0xC0000005: Access violation. The problem is that this exception is thrown before my app even gets into WinMain. The stack trace when the exception is raised is:-
NTDLL.DLL!_RtlRaiseStatus@4() + 0x24 NTDLL.DLL!_LdrpInitialize@12() + 0x15276 NTDLL.DLL!_KiUserApcDispatcher@20() + 0x7
When I take a look in the output Window after execution I get.First-chance exception at 0x77f92373 (NTDLL.DLL) in WMSClient.exe: 0xC0000005: Access violation writing location 0x00000010. First-chance exception at 0x7c59ba9d in WMSClient.exe: 0x000003E6: Invalid access to memory location. First-chance exception at 0x77f92373 (NTDLL.DLL) in WMSClient.exe: 0xC0000005: Access violation writing location 0x00000010. First-chance exception at 0x77fb17a4 (NTDLL.DLL) in WMSClient.exe: 0xC0000005: Access violation. Unhandled exception at 0x77fb17a4 (NTDLL.DLL) in WMSClient.exe: 0xC0000005: Access violation. The program '[1968] WMSClient.exe: Native' has exited with code 128 (0x80).
At first I thought it was maybe caused by one of the global variables causing problems but most of them are basic types. Those which are classes, I put a breakpoint in the constructor but it never gets called. Can anyone suggest anything else to look at? Cheers JamesI will tell you one thingk vs.net is a junk at its best.... My God is more powerfull Than Your God. (the line that divides the world)