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. Yet another release/debug problem...

Yet another release/debug problem...

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingcsharpcomperformance
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.
  • C Offline
    C Offline
    Cabadam
    wrote on last edited by
    #1

    Yeah, I know you guys get this one a lot, I've seen them... But I have another instance of a program running fine in debug and crashing in release. I have set up a configuration that basically mimics as many settings of "release" as possible, but allows me to go through in debug mode and trace code. Ok, here we go: I have a dialog app. The main dialog (we'll call it Dialog A) that opens has a button on it that results in opening Dialog B. Upon clicking this button I get an error of: "The instruction at '0x004229dd' referenced memory at '0x00000401'. The memory could not be 'read'." So I traced it. It occurs AFTER the DialogB::OnInitDialog() call. This is a screenshot of the debug window showing where it 'died' ftp://cabadam.homeip.net/sshot.jpg I am unable to determine why it crashed, maybe one of you guys could help me out. Thanks! Adam cabadam@houston.rr.com

    T 1 Reply Last reply
    0
    • C Cabadam

      Yeah, I know you guys get this one a lot, I've seen them... But I have another instance of a program running fine in debug and crashing in release. I have set up a configuration that basically mimics as many settings of "release" as possible, but allows me to go through in debug mode and trace code. Ok, here we go: I have a dialog app. The main dialog (we'll call it Dialog A) that opens has a button on it that results in opening Dialog B. Upon clicking this button I get an error of: "The instruction at '0x004229dd' referenced memory at '0x00000401'. The memory could not be 'read'." So I traced it. It occurs AFTER the DialogB::OnInitDialog() call. This is a screenshot of the debug window showing where it 'died' ftp://cabadam.homeip.net/sshot.jpg I am unable to determine why it crashed, maybe one of you guys could help me out. Thanks! Adam cabadam@houston.rr.com

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      m_pCtrlSite contais bogus value. Looks like you're overwriting it somewhere. Do you have access to diagnostic tools like BoundsChecker or Purify? Tomasz Sowinski -- http://www.shooltz.com.pl

      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