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. Successfully build EXE, but it won't run...

Successfully build EXE, but it won't run...

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdebugging
8 Posts 7 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
    Lost User
    wrote on last edited by
    #1

    I've successfully build the EXE for my program, but when I double click on it to run, a message come up like the one below... ---------------------------------------- Microsoft Visual C++ Debug Library ---------------------------------------- Debug Assertion Failed! Program - ...Program.EXE File: dlgdata.cpp Line: 43 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. Please Retry to debug the application. = Abort = = Retry = = Ignore = ----------------------------------------------- That was the message, I've try looking it up in the help file, but no luck. PLease help, the program just won't run even if I press Abort, Retry, or Ignore. When I press Retry, a message come up saying "An Unsupported Operation Was Attempted!"... Please, I really need to get this thing fix...

    N C R T R 5 Replies Last reply
    0
    • L Lost User

      I've successfully build the EXE for my program, but when I double click on it to run, a message come up like the one below... ---------------------------------------- Microsoft Visual C++ Debug Library ---------------------------------------- Debug Assertion Failed! Program - ...Program.EXE File: dlgdata.cpp Line: 43 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. Please Retry to debug the application. = Abort = = Retry = = Ignore = ----------------------------------------------- That was the message, I've try looking it up in the help file, but no luck. PLease help, the program just won't run even if I press Abort, Retry, or Ignore. When I press Retry, a message come up saying "An Unsupported Operation Was Attempted!"... Please, I really need to get this thing fix...

      N Offline
      N Offline
      Nemanja Trifunovic
      wrote on last edited by
      #2

      1. Did you try to debug it from IDE? 2. Did you try to build a release version? I vote pro drink X|

      1 Reply Last reply
      0
      • L Lost User

        I've successfully build the EXE for my program, but when I double click on it to run, a message come up like the one below... ---------------------------------------- Microsoft Visual C++ Debug Library ---------------------------------------- Debug Assertion Failed! Program - ...Program.EXE File: dlgdata.cpp Line: 43 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. Please Retry to debug the application. = Abort = = Retry = = Ignore = ----------------------------------------------- That was the message, I've try looking it up in the help file, but no luck. PLease help, the program just won't run even if I press Abort, Retry, or Ignore. When I press Retry, a message come up saying "An Unsupported Operation Was Attempted!"... Please, I really need to get this thing fix...

        C Offline
        C Offline
        Carlos Antollini
        wrote on last edited by
        #3

        F5 Helps Cheers!!!!:-D Carlos Antollini.

        L 1 Reply Last reply
        0
        • C Carlos Antollini

          F5 Helps Cheers!!!!:-D Carlos Antollini.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Hi, I press F5 to build/compile it, but still receive the same error. How can I build a release version? I try to debug it, but I just don't know the proper step. I'm really new to this kind of stuff, please help...

          C 1 Reply Last reply
          0
          • L Lost User

            I've successfully build the EXE for my program, but when I double click on it to run, a message come up like the one below... ---------------------------------------- Microsoft Visual C++ Debug Library ---------------------------------------- Debug Assertion Failed! Program - ...Program.EXE File: dlgdata.cpp Line: 43 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. Please Retry to debug the application. = Abort = = Retry = = Ignore = ----------------------------------------------- That was the message, I've try looking it up in the help file, but no luck. PLease help, the program just won't run even if I press Abort, Retry, or Ignore. When I press Retry, a message come up saying "An Unsupported Operation Was Attempted!"... Please, I really need to get this thing fix...

            R Offline
            R Offline
            Richard Bywater
            wrote on last edited by
            #5

            Assumming dlgdata.cpp is something you've written, what does line 43 say? The best thing to do is to put a breakpoint somewhere and see what you're passing to the particular function... Cheers, Richard.

            1 Reply Last reply
            0
            • L Lost User

              Hi, I press F5 to build/compile it, but still receive the same error. How can I build a release version? I try to debug it, but I just don't know the proper step. I'm really new to this kind of stuff, please help...

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              You use F9 to put a breakpoint in your code, then when you push F5 you will go into debug mode, and the program will stop at your break point. Use F10 to execute a line of code at a time until you find the line that is crashing. In this case, you just need to go to the line in question of the file in question. It's in MFC and the code looks like this:

              if (hWndCtrl == NULL)
              {
              	TRACE1("Error: no data exchange control with ID 0x%04X.\\n", nIDC);
              	ASSERT(FALSE);
              	AfxThrowNotSupportedException();
              }
              

              What it is saying is that you used to have a control in your dialog, you deleted it, and there is still code there trying to link to that control. Get rid of the code related to the control you deleted and it will work. In future I recommend if an error comes up telling you a file and line number you have a look to see where it crashes so you can figure out why. The TRACE line would also have output this error into your output window, you should read what it say when a program crashes. Christian Secrets of a happy marriage #27: Never go to bed if you are mad at each other. It's more fun to stay up and fight.

              1 Reply Last reply
              0
              • L Lost User

                I've successfully build the EXE for my program, but when I double click on it to run, a message come up like the one below... ---------------------------------------- Microsoft Visual C++ Debug Library ---------------------------------------- Debug Assertion Failed! Program - ...Program.EXE File: dlgdata.cpp Line: 43 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. Please Retry to debug the application. = Abort = = Retry = = Ignore = ----------------------------------------------- That was the message, I've try looking it up in the help file, but no luck. PLease help, the program just won't run even if I press Abort, Retry, or Ignore. When I press Retry, a message come up saying "An Unsupported Operation Was Attempted!"... Please, I really need to get this thing fix...

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

                Press Retry, then select View|Debug windows|Call stack. YOu'll see that assert failed inside CDataExchange::PrepareCtrl. Look deeper on the stack to find out who called PrepareCtrl. I have a strong feeling that you have DDX_something on a control with nontexisting identifier inside CYourDialog::DoDataExchange. Tomasz Sowinski -- http://www.shooltz.com

                1 Reply Last reply
                0
                • L Lost User

                  I've successfully build the EXE for my program, but when I double click on it to run, a message come up like the one below... ---------------------------------------- Microsoft Visual C++ Debug Library ---------------------------------------- Debug Assertion Failed! Program - ...Program.EXE File: dlgdata.cpp Line: 43 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. Please Retry to debug the application. = Abort = = Retry = = Ignore = ----------------------------------------------- That was the message, I've try looking it up in the help file, but no luck. PLease help, the program just won't run even if I press Abort, Retry, or Ignore. When I press Retry, a message come up saying "An Unsupported Operation Was Attempted!"... Please, I really need to get this thing fix...

                  R Offline
                  R Offline
                  roel
                  wrote on last edited by
                  #8

                  i have just encountered the same problem... if you had any luck in solving the problem. please do tell. :)

                  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