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. Map file crash tracing

Map file crash tracing

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++debuggingperformance
3 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.
  • J Offline
    J Offline
    jossion
    wrote on last edited by
    #1

    I have generated a MAP file for an MFC application with two threads. The load address in the MAP file is 0x00400000. But the program is showing a run-time error for an instruction at 0x77fcca41 which is refering to memory at 0xffffffff that could not be read. But there are no instruction at 0x77fcca41 in the MAP file. I would like to know whether anyone has come across such a problem and was able to trace the cause. If so some help is required

    S M 2 Replies Last reply
    0
    • J jossion

      I have generated a MAP file for an MFC application with two threads. The load address in the MAP file is 0x00400000. But the program is showing a run-time error for an instruction at 0x77fcca41 which is refering to memory at 0xffffffff that could not be read. But there are no instruction at 0x77fcca41 in the MAP file. I would like to know whether anyone has come across such a problem and was able to trace the cause. If so some help is required

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      Debugging release builds using map files is outdated, unnecessary and inefficient. Simply enable debug information for your release build (be sure to do so for the compiler and linker) and debug as normal.

      Steve

      1 Reply Last reply
      0
      • J jossion

        I have generated a MAP file for an MFC application with two threads. The load address in the MAP file is 0x00400000. But the program is showing a run-time error for an instruction at 0x77fcca41 which is refering to memory at 0xffffffff that could not be read. But there are no instruction at 0x77fcca41 in the MAP file. I would like to know whether anyone has come across such a problem and was able to trace the cause. If so some help is required

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        That address is in one of the OS DLLs. If you can repro the crash, run the EXE in the debugger and look at the stack trace when the crash happens. You can then look up the addresses that are on the stack.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

        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