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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. The Application Just Quits ! .. Very Strange. Please Help.

The Application Just Quits ! .. Very Strange. Please Help.

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

    Hello, I am getting the strangest error. I have a VC++ application using VC++ 6.0. At one point in my application, if I press "Enter" the application just quits. If I press anything else of click the button to go on a next screen etc. .. it works fine. IF I press the "X" on top corner to quit, it asks me if I want to quit and quits normally. But if I press Enter on that screen it just suddenly terminates, completely blimps out!! In Debugger, It goes into Wincore.cpp. For some reason ContinueModal() ends up returning "0" at the last minute. Until the point it calls it .. when I look at it in the Watch ContinueModal() is NonZero. But inside ContinueModal() looks like one of the pointers (WF_CONTINUEMODAL) is null. I will really appreciate any help on insight into this. Thank you very much ! Sincerely, Anjum Gupta.

    F 1 Reply Last reply
    0
    • A a3gupta

      Hello, I am getting the strangest error. I have a VC++ application using VC++ 6.0. At one point in my application, if I press "Enter" the application just quits. If I press anything else of click the button to go on a next screen etc. .. it works fine. IF I press the "X" on top corner to quit, it asks me if I want to quit and quits normally. But if I press Enter on that screen it just suddenly terminates, completely blimps out!! In Debugger, It goes into Wincore.cpp. For some reason ContinueModal() ends up returning "0" at the last minute. Until the point it calls it .. when I look at it in the Watch ContinueModal() is NonZero. But inside ContinueModal() looks like one of the pointers (WF_CONTINUEMODAL) is null. I will really appreciate any help on insight into this. Thank you very much ! Sincerely, Anjum Gupta.

      F Offline
      F Offline
      Fredrik Skog
      wrote on last edited by
      #2

      If it is a dialog application, it might be the dialogs default OnOk() that causes this. If so, override it and remove the call to CDialog::OnOK(). Cheers, Fredrik
      Sonork ID: 100.11430:PhatBoy
      "Felix qui potuit rerum cognoscere causas."

      A 1 Reply Last reply
      0
      • F Fredrik Skog

        If it is a dialog application, it might be the dialogs default OnOk() that causes this. If so, override it and remove the call to CDialog::OnOK(). Cheers, Fredrik
        Sonork ID: 100.11430:PhatBoy
        "Felix qui potuit rerum cognoscere causas."

        A Offline
        A Offline
        a3gupta
        wrote on last edited by
        #3

        Thank you for your quick response. but .. i do have OnOk() function over ridden.

        F N 2 Replies Last reply
        0
        • A a3gupta

          Thank you for your quick response. but .. i do have OnOk() function over ridden.

          F Offline
          F Offline
          Fredrik Skog
          wrote on last edited by
          #4

          Where do you have the focus when you press enter? Cheers, Fredrik
          Sonork ID: 100.11430:PhatBoy
          "Felix qui potuit rerum cognoscere causas."

          1 Reply Last reply
          0
          • A a3gupta

            Thank you for your quick response. but .. i do have OnOk() function over ridden.

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #5

            a3gupta wrote: i do have OnOk() function over ridden. Don't call the base class! Nish


            Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

            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