RE: console application question

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Chua Wen Ching (chua_wen_ching_at_nospam.hotmail.com)
Date: 09/26/04


Date: Sun, 26 Sep 2004 06:37:01 -0700

Hi vh,

It only happens on debug mode.. it is common

Just place this line of code at the end of your console app

Console.ReadLine();

or you can choose not to debug, and the window will be there

Have Fun!

Cheers.

"vh" wrote:

> Hi All,
> I am writing a c# console application in VS.net, every time I run the
> program, the console showed and disappeared very quickly, I can't see what
> is displayed. Are there some settings that let the window stay there after
> my program terminates? I know I can write my program to wait for a key
> pressed, or set a break point at the end my main, but are there simpler ways
> out there? It seems a simple problem, but I can't find any settings about
> this.
>
> thanks
> min
>
>
>



Relevant Pages

  • Re: Setting Console Window Properties
    ... window and save settings, there will be subkey under that registry key. ... the console will then use default settings from parent key. ...
    (microsoft.public.windowsxp.general)
  • Re: Notification of timezone change
    ... inside the message handler to retrieve it again and compare with cached value, ... settings, this parameter points to the string "intl". ... For a console application, you may implement a "listener" thread (this is the ... When this receiver window gets the message, ...
    (microsoft.public.win32.programmer.kernel)
  • Stopping "Link down - cable problem?" Messages
    ... messages only going to the console and not /var/adm/messages? ... If I run syslogdin debug mode, I see the output (heavily edited for ... all "kern" messages should be logged. ... syslogd: version 1.99 ...
    (SunManagers)
  • Re: How Do I Debug the Console Output?
    ... compiled as a console application, and that I'm running in Debug mode. ... Module Module1 ... Why don't I see "Test" on the Output window, and what must I do to see ...
    (microsoft.public.dotnet.general)
  • RE: New to programming...
    ... > console programs, the console window runs my program and then the window ... > programs in Debug mode with VS 6.0 holds the window open for you until you ... > manually hold a window the way I have been with a cin statement while ...
    (microsoft.public.vsnet.ide)