Thread: I don't understand this error...

  1. #16
    Registered User manofsteel972's Avatar
    Join Date
    Mar 2004
    Posts
    317
    Maybe you corrupted some files or the ide. I had that happen to me and just had to reinstall visuall c++6. You know when your icons go black that some memory somewhere got overwritten.
    "Knowledge is proud that she knows so much; Wisdom is humble that she knows no more."
    -- Cowper

    Operating Systems=Slackware Linux 9.1,Windows 98/Xp
    Compilers=gcc 3.2.3, Visual C++ 6.0, DevC++(Mingw)

    You may teach a person from now until doom's day, but that person will only know what he learns himself.

    Now I know what doesn't work.

    A problem is understood by solving it, not by pondering it.

    For a bit of humor check out xkcd web comic http://xkcd.com/235/

  2. #17
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Your problem may be the fact that you are using void main (appologies if it was answered...i just saw no one was getting anywhere in the first few i read). Your debugger is just telling you that the program returned an error. Now to you there is no error, but to your debugger its telling you what main returned. Since it returned nothing the debugger is just vomitting the number the eax register just happened to have in it back to you.

  3. #18
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    Maybe before you used Ctrl-F5 (or Execute !), which automatically adds the "Press any key to continue.". Now you are using just F5 (or Go) which does not.

    The information you posted at the top is completely normal when you run your program through the debugger (F5), so don't worry about it. I'd suggest learning more about the debugger (it is a great tool), and adding a breakpoint to the end of your main function so that you can see the output before it closes. Or you could use one of the plethora of techniques to pause it before the program ends. Or, you could just use Execute (Ctrl-F5) to run your program outside the debugger like you used to.

  4. #19
    Registered User
    Join Date
    May 2003
    Posts
    195
    Quote Originally Posted by jlou
    Maybe before you used Ctrl-F5 (or Execute !), which automatically adds the "Press any key to continue.". Now you are using just F5 (or Go) which does not.

    The information you posted at the top is completely normal when you run your program through the debugger (F5), so don't worry about it. I'd suggest learning more about the debugger (it is a great tool), and adding a breakpoint to the end of your main function so that you can see the output before it closes. Or you could use one of the plethora of techniques to pause it before the program ends. Or, you could just use Execute (Ctrl-F5) to run your program outside the debugger like you used to.
    HOLY MAJEEBUS U are my hero lol, ugh i cannot believe i am so retarded (i just reinstalled anyways). It was because I was too used to JCreator and pressing F5 for execute that I completely forgot ctrl+f5 for vC++. Thanks a lot, and thanks for all the other advice, i'll be sure to use int main

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM