Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Howto terminate application after exception 1

Status
Not open for further replies.

Asterix15

Programmer
Jul 22, 2005
3
DE
Hi Programmers,
i wrote an application and now want to add a correct exception-handling. If an exception is released, a message should appear and the app should be terminated (all with try-catch...).
The problem is the termination. If i have a windows-form, i simply use the method dispose() to terminate the app. But if the Exception appears in a normal class that i created, i don't have this method of course. So the app displays the message, but then it doesn't terminate, but steps through the following functions and releases succession error-messages. How can i terminate the process on this location? Any hint would be appreciated
Thanks in advance
Asterix
 
application.exit

or

end



Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Hello chrissie1,
it can be so simple ...
Thanks a lot
Asterix
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top