Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problems recompiling under VC.Net

Problems recompiling under VC.Net

Scheduled Pinned Locked Moved C / C++ / MFC
c++debugginghelpcsharpdata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    James Spibey
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • J James Spibey

      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

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      I 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)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups