How can I exit from a console application

How can I exit from a console application

Post by Vedant Lat » Tue, 08 Jun 2004 18:14:53


I want to exit from a console appication. How can I do this ?

Plz help
 
 
 

How can I exit from a console application

Post by hirf-spam- » Tue, 08 Jun 2004 18:49:46

* "Vedant Lath" < XXXX@XXXXX.COM > scripsit:

Place a 'Return' in the 'Sub Main'.

--
Herfried K. Wagner [MVP]
<URL: http://www.yqcomputer.com/ ;

 
 
 

How can I exit from a console application

Post by pdavis6 » Tue, 08 Jun 2004 22:40:12

You need to exit out of the "Main()" method (or whatever it's called in your
app). Once the application returns from Main(), the console window will
close and the app will terminate.

Pete
 
 
 

How can I exit from a console application

Post by Jon Skeet » Tue, 08 Jun 2004 23:20:21


That is, if there aren't any other non-background threads running...

--
Jon Skeet - < XXXX@XXXXX.COM >
http://www.yqcomputer.com/ ~skeet
If replying to the group, please do not mail me too