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. Dialog crashes

Dialog crashes

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingquestiondata-structureshelptutorial
4 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.
  • W Offline
    W Offline
    Wim Engberts
    wrote on last edited by
    #1

    Hi all, In a program, I have a linked list of Dialogs. Upon some actions of the user, I select one and present it (using DoModal). All of a sudden, the system now crashes in production compilation (the debug compilation of course has got no problem whatsoever). I have built in some lines to a tracefile, and so far, this works fine all the way to the end of the "OnInitDialog" routine. After that, Windows asks me to send a message to mr. Gates. Has anyone got an idea of how to trace this further down the events? I am of course doing something trivial wrong, but how do I get there (especially since the debug version of my program works fine...) Thanks in advance for any suggestions. William

    P 1 Reply Last reply
    0
    • W Wim Engberts

      Hi all, In a program, I have a linked list of Dialogs. Upon some actions of the user, I select one and present it (using DoModal). All of a sudden, the system now crashes in production compilation (the debug compilation of course has got no problem whatsoever). I have built in some lines to a tracefile, and so far, this works fine all the way to the end of the "OnInitDialog" routine. After that, Windows asks me to send a message to mr. Gates. Has anyone got an idea of how to trace this further down the events? I am of course doing something trivial wrong, but how do I get there (especially since the debug version of my program works fine...) Thanks in advance for any suggestions. William

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      Can you show code in OnInitDialog() ? Probably, you are using something, yet to initialize.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      W 1 Reply Last reply
      0
      • P prasad_som

        Can you show code in OnInitDialog() ? Probably, you are using something, yet to initialize.

        Prasad Notifier using ATL | Operator new[],delete[][^]

        W Offline
        W Offline
        Wim Engberts
        wrote on last edited by
        #3

        Prasad, Thanks for the suggestion. I have already tried to comment-out every statement in the OnInitDialog (Except of course for the CDialog::OnInitDialog and the return statement): no change in the program's behaviour. William

        P 1 Reply Last reply
        0
        • W Wim Engberts

          Prasad, Thanks for the suggestion. I have already tried to comment-out every statement in the OnInitDialog (Except of course for the CDialog::OnInitDialog and the return statement): no change in the program's behaviour. William

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          If possible, debug in release mode. May this link[^]is helpful to you.

          Prasad Notifier using ATL | Operator new[],delete[][^]

          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