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. SOS! Release version crashed

SOS! Release version crashed

Scheduled Pinned Locked Moved C / C++ / MFC
helpannouncementdata-structuresquestion
5 Posts 3 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.
  • L Offline
    L Offline
    lucy 0
    wrote on last edited by
    #1

    yes, the debugging version is working okay, and the release version crashed. It's a SDI project. After the release version run for about 5 seconds, this error message pop up: "First-chance exception in MyApp.exe: 0xC0000005: Access Violation." The call stack is:

    CWnd::AttachControlSite(CWnd * const 0x010b7b2c {CMapPtrToPtr}, CHandleMap * 0x010b7b28) line 420
    CWnd::FromHandle(HWND__ * 0x00060aaa) line 293
    CWnd::GetOwner(const CWnd * const 0x010b7b2c {CMapPtrToPtr}) line 35 + 22 bytes
    AfxGetParentOwner(HWND__ * 0x00050ad2) line 2141 + 7 bytes
    CWnd::GetTopLevelParent(const CWnd * const 0x010b7b2c {CMapPtrToPtr}) line 2157 + 6 bytes
    CWinThread::PreTranslateMessage(CWinThread * const 0x010b7b2c {CMapPtrToPtr}, tagMSG * 0x004751d0 {msg=0x00000118 wp=0x0000ffff lp=0xa00258ae}) line 680 + 7 bytes
    CWinThread::PumpMessage(CWinThread * const 0x010b7b2c {CMapPtrToPtr}) line 848 + 17 bytes
    CWinThread::Run(CWinThread * const 0x010b7b2c {CMapPtrToPtr}) line 487 + 7 bytes
    CWinApp::Run(CWinApp * const 0x010b7b2c {CMapPtrToPtr}) line 399 + 7 bytes
    AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00133476, int 1) line 49 + 7 bytes
    WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00133476, int 1) line 30
    TCSTATUS! WinMainCRTStartup + 224 bytes

    any hint? Thank you a lot for any help!

    M D 2 Replies Last reply
    0
    • L lucy 0

      yes, the debugging version is working okay, and the release version crashed. It's a SDI project. After the release version run for about 5 seconds, this error message pop up: "First-chance exception in MyApp.exe: 0xC0000005: Access Violation." The call stack is:

      CWnd::AttachControlSite(CWnd * const 0x010b7b2c {CMapPtrToPtr}, CHandleMap * 0x010b7b28) line 420
      CWnd::FromHandle(HWND__ * 0x00060aaa) line 293
      CWnd::GetOwner(const CWnd * const 0x010b7b2c {CMapPtrToPtr}) line 35 + 22 bytes
      AfxGetParentOwner(HWND__ * 0x00050ad2) line 2141 + 7 bytes
      CWnd::GetTopLevelParent(const CWnd * const 0x010b7b2c {CMapPtrToPtr}) line 2157 + 6 bytes
      CWinThread::PreTranslateMessage(CWinThread * const 0x010b7b2c {CMapPtrToPtr}, tagMSG * 0x004751d0 {msg=0x00000118 wp=0x0000ffff lp=0xa00258ae}) line 680 + 7 bytes
      CWinThread::PumpMessage(CWinThread * const 0x010b7b2c {CMapPtrToPtr}) line 848 + 17 bytes
      CWinThread::Run(CWinThread * const 0x010b7b2c {CMapPtrToPtr}) line 487 + 7 bytes
      CWinApp::Run(CWinApp * const 0x010b7b2c {CMapPtrToPtr}) line 399 + 7 bytes
      AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00133476, int 1) line 49 + 7 bytes
      WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00133476, int 1) line 30
      TCSTATUS! WinMainCRTStartup + 224 bytes

      any hint? Thank you a lot for any help!

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      The usuals, check for un-initialized variables, bad conditions in if, bad loops, ... Give your project a level-4 warning level compile to see if the compiler can find the obvious things.


      Maximilien Lincourt "Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )

      1 Reply Last reply
      0
      • L lucy 0

        yes, the debugging version is working okay, and the release version crashed. It's a SDI project. After the release version run for about 5 seconds, this error message pop up: "First-chance exception in MyApp.exe: 0xC0000005: Access Violation." The call stack is:

        CWnd::AttachControlSite(CWnd * const 0x010b7b2c {CMapPtrToPtr}, CHandleMap * 0x010b7b28) line 420
        CWnd::FromHandle(HWND__ * 0x00060aaa) line 293
        CWnd::GetOwner(const CWnd * const 0x010b7b2c {CMapPtrToPtr}) line 35 + 22 bytes
        AfxGetParentOwner(HWND__ * 0x00050ad2) line 2141 + 7 bytes
        CWnd::GetTopLevelParent(const CWnd * const 0x010b7b2c {CMapPtrToPtr}) line 2157 + 6 bytes
        CWinThread::PreTranslateMessage(CWinThread * const 0x010b7b2c {CMapPtrToPtr}, tagMSG * 0x004751d0 {msg=0x00000118 wp=0x0000ffff lp=0xa00258ae}) line 680 + 7 bytes
        CWinThread::PumpMessage(CWinThread * const 0x010b7b2c {CMapPtrToPtr}) line 848 + 17 bytes
        CWinThread::Run(CWinThread * const 0x010b7b2c {CMapPtrToPtr}) line 487 + 7 bytes
        CWinApp::Run(CWinApp * const 0x010b7b2c {CMapPtrToPtr}) line 399 + 7 bytes
        AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00133476, int 1) line 49 + 7 bytes
        WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00133476, int 1) line 30
        TCSTATUS! WinMainCRTStartup + 224 bytes

        any hint? Thank you a lot for any help!

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        See if this helps: http://flounder.com/debug\_release.htm

        L 1 Reply Last reply
        0
        • D David Crow

          See if this helps: http://flounder.com/debug\_release.htm

          L Offline
          L Offline
          lucy 0
          wrote on last edited by
          #4

          Thank you guys. :rose: I used a class for joystick support. I think it's it which couldn't survive the release. X| I used it in another app, which I couldn't build release version either. It's using DirectIO tech. Any idea how to debug such stuff?

          D 1 Reply Last reply
          0
          • L lucy 0

            Thank you guys. :rose: I used a class for joystick support. I think it's it which couldn't survive the release. X| I used it in another app, which I couldn't build release version either. It's using DirectIO tech. Any idea how to debug such stuff?

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            lucy wrote: It's using DirectIO tech. Any idea how to debug such stuff? Never heard of it. Your best bet is to create a small application that demonstrates the problem. Once the reproducible code is as small as possible, try posting it here for help.

            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