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
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