Thread: 'No symbols Loaded'. Simple console application

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    3

    Wink 'No symbols Loaded'. Simple console application

    Hi,
    I havent coded in c++ in 2 years or so and just was writing a fairly simple console app to refresh myself. Its builds without errors and warnings but when i run it the program exits immediatley (cant insert breakpoints to see whats happening) and the following comes up in the debug window:

    'Test1.exe': Loaded 'C:\Windows\system32\ntdll.dll', No symbols loaded.
    'Test1.exe': Loaded 'C:\Windows\system32\ntdll.dll', No symbols loaded.
    The program '[3088] Test1.exe: Native' has exited with code 0 (0x0).


    The last time I used C++ I was using MS V6.0 and am using MS V.NET now. So I don't know if this is something to do with it. I.e. some of the #includes i am using. Cant find anything in the MSDN libraries.Can anybody help????please

  2. #2
    Registered User
    Join Date
    Oct 2004
    Posts
    3
    Sorry just to add,
    Inserting breakpoints outside my main file could let me see whats happening. My program basically runs exactly as i want but when the last function is called it just exists straight away. What do i do to make the console window stay open? (the programme takes no user input, no cin's so without putting in breakpoints i cant see it working)
    any help is appreciated. regards

  3. #3
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    You can try putting a cin.get(); statement at the end of your program. This topic is discussed in the FAQ.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  4. #4
    Registered User
    Join Date
    Oct 2004
    Posts
    3
    Thanks, I scanned the FAQ and missed it. Cheers for pointing both out.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 01-14-2008, 10:25 AM
  2. Simple GUI for console app (How?)
    By Bill 101 in forum C Programming
    Replies: 3
    Last Post: 11-15-2002, 03:16 PM
  3. splitting the screen in a Win32 console application
    By watcher_b in forum C Programming
    Replies: 1
    Last Post: 10-19-2002, 05:22 PM
  4. Few problems with console application
    By GaPe in forum C Programming
    Replies: 12
    Last Post: 04-03-2002, 01:19 PM
  5. Win32 Console Application...Full Screen?
    By MrWizard in forum C++ Programming
    Replies: 4
    Last Post: 04-01-2002, 02:56 PM