Menu

Strange Exit Behavior

Joe
2009-02-12
2012-09-26
  • Joe

    Joe - 2009-02-12

    I have a simple, relatively, program in C++ that refuses to return to Windows with causing a Windows error. I have tried both of the following:
    return EXIT_SUCCESS;
    return (0);

    Thoughts?

     
    • cpns

      cpns - 2009-02-14

      > Thoughts?

      Yes, it is crashing before it ever gets to that statement.

       
    • Wayne Keen

      Wayne Keen - 2009-02-12

      Posting your Basic 3 for a simple as possible working test case would be nice.

      Wayne

       
    • Joe

      Joe - 2009-02-12

      Wayne,

      I've looked through the FAQ's and don't see my problem described. I've also looked for a way to post my source files, but I don't see a way to do that in this forum. Lastly, I'm not sure about your "Basic 3", even after reading the "Read this first" posting.

      Joe

       
      • Wayne Keen

        Wayne Keen - 2009-02-12

        Copy and paste a simple test case that compiles and shows the effect you are seeing right in your post.

        Here are the Basic 3 - copied from the Please Read Thread:

        (1) What version number of Dev are you using, with what OS? (Note that terms like "Newest" or "The one off the CD" are not version numbers)

        (2) Provide a simple example program that shows the effect you are seeing. If your program is long, try to construct a simple, focused example program. Remember, it is easier for someone to help you with a simple example program that with a code fragment of a long program.

        (3) Post your FULL compile log. Its on the tab labeled "Compile Log". To copy it, grab the text with the mouse as you normally would, and click the right mouse button to bring up the copy menu. If the log is very long, then start at the beginning, and grab the first 5 or so errors.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.