locked
The program '[3592] Hello.exe: Native' has exited with code 0 (0x0).

    Question

  • Everytime I click on debug on any code like "Hello World" one it always give me this

    'Hello.exe': Loaded 'C:\Documents and Settings\My Ngo\My Documents\Visual Studio 2005\Projects\gf\debug\gf.exe', Symbols loaded.

    'Hello.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.

    'Hello.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.

    'Hello.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll', No symbols loaded.

    'Hello.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', No symbols loaded.

    'Hello.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.

    The program '[3592] Hello.exe: Native' has exited with code 0 (0x0).

    vendredi 20 octobre 2006 03:17

Réponses

  • There are no problems here this is perfectly normal - it shows informational messages about what debug-info was loaded (and which wasn't) and also that your program executed and exited normally - a zero return code means success.

    If you don't see anything on the screen thry running your program with CTRL-F5 instead of just F5.

    vendredi 20 octobre 2006 14:13

Toutes les réponses

  • There are no problems here this is perfectly normal - it shows informational messages about what debug-info was loaded (and which wasn't) and also that your program executed and exited normally - a zero return code means success.

    If you don't see anything on the screen thry running your program with CTRL-F5 instead of just F5.

    vendredi 20 octobre 2006 14:13
  • hi, any other way to solve this problem,  any changes of setting in VS.NET
    dimanche 24 juin 2007 00:22
  • The other way of doing this is to force a pause at the end of the application yourself.

    The two ways are

    system("pause");

     

    or

     

    printf("Press any key to continue...\n");

    _getch();

     

    This will then put a pause at the end of the application and allow you to see what you have without switching off debugging for an application.

    • Proposé comme réponse rana_20401 jeudi 3 février 2011 15:54
    dimanche 24 juin 2007 13:56
  • This wasn't helpful either. I still don't see anything going on.

    Still get "Native has exited with code 0"

    dimanche 18 novembre 2007 02:58
  •  

    Opening the application as a console application helped solve the issue.

    Thanks.

    dimanche 18 novembre 2007 03:42
  • that's right!! thanks!! ;))
    vendredi 6 novembre 2009 13:46
  • Thank you This helped me :)
    I am newly working on graphics and virtual reality on C++ and VE suite.. any idea how this works ?
    samedi 16 janvier 2010 21:21
  • how do you open it as a console application?? i am also having this issue...
    mercredi 8 décembre 2010 00:59
  • >how do you open it as a console application?

    Either choose the "Win32 Console Application"
    template when you create a new project or
    change this option in your Project Properties:

    Configuration Properties->Linker->System:"Subsystem"

    >i am also having this issue...

    Spell out what "this issue" refers to, don't make
    responders hunt and guess. The more explicit you
    are, the faster you'll get a resolution.

    - Wayne
    • Proposé comme réponse rana_20401 jeudi 3 février 2011 15:53
    mercredi 8 décembre 2010 04:14
  • it worked for me like Crecens2k said

    but I put both of :

    system("pause");

    and

    printf("Press any key to continue...\n");

    I didn' try  the other way with console

    thanks all

    jeudi 3 février 2011 16:00
  • Thanks!it is useful!
    mardi 14 juin 2011 03:27
  • Thanks Jonathan CTRL+F5 WORKED FOR ME
    samedi 11 février 2012 20:42