How can I exit from a console application

  • Thread starter Thread starter Vedant Lath
  • Start date Start date
V

Vedant Lath

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

Plz help
 
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
 
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.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top