Click here to Skip to main content
15,868,292 members
Home / Discussions / C#
   

C#

 
AnswerRe: MessageBox error Pin
Pete O'Hanlon15-Oct-12 0:21
subeditorPete O'Hanlon15-Oct-12 0:21 
AnswerRe: MessageBox error Pin
Eddy Vluggen15-Oct-12 0:43
professionalEddy Vluggen15-Oct-12 0:43 
QuestionUnhandledException Pin
Hamid_RT14-Oct-12 3:38
Hamid_RT14-Oct-12 3:38 
AnswerRe: UnhandledException Pin
OriginalGriff14-Oct-12 3:49
mveOriginalGriff14-Oct-12 3:49 
GeneralRe: UnhandledException Pin
Hamid_RT14-Oct-12 4:14
Hamid_RT14-Oct-12 4:14 
GeneralRe: UnhandledException Pin
OriginalGriff14-Oct-12 4:25
mveOriginalGriff14-Oct-12 4:25 
GeneralRe: UnhandledException Pin
Hamid_RT14-Oct-12 5:03
Hamid_RT14-Oct-12 5:03 
GeneralRe: UnhandledException Pin
OriginalGriff14-Oct-12 5:12
mveOriginalGriff14-Oct-12 5:12 
That is pretty much what I would expect. If you don't have the exception handler cause an program exit, then the system has no choice except to cause an abnormal termination - which is what your message shows.

Think about it: the exception is thrown from the Main method. The application cannot continue under any circumstances without restarting the whole program.

In Winforms et al., it is multithreaded, so a single thread can be terminated without necessarily killing the whole app - but your console app is a single thread. If it can't continue the only running thread, it can't continue the application.
In GUI apps, the Main function is executed in a thread, which fires off other threads to handle the UI for each form. They can be terminated without affecting the Main thread, since all it is doing is waiting for the others to die anyway! Laugh | :laugh:
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: UnhandledException Pin
Hamid_RT14-Oct-12 5:25
Hamid_RT14-Oct-12 5:25 
GeneralRe: UnhandledException Pin
jschell14-Oct-12 6:59
jschell14-Oct-12 6:59 
AnswerRe: UnhandledException Pin
Eddy Vluggen14-Oct-12 3:50
professionalEddy Vluggen14-Oct-12 3:50 
GeneralRe: UnhandledException Pin
Hamid_RT14-Oct-12 4:17
Hamid_RT14-Oct-12 4:17 
GeneralRe: UnhandledException Pin
Eddy Vluggen14-Oct-12 4:22
professionalEddy Vluggen14-Oct-12 4:22 
GeneralRe: UnhandledException Pin
Hamid_RT14-Oct-12 5:08
Hamid_RT14-Oct-12 5:08 
GeneralRe: UnhandledException Pin
Eddy Vluggen14-Oct-12 8:27
professionalEddy Vluggen14-Oct-12 8:27 
QuestionError in Messagebox solution Pin
Saridakis Manolis13-Oct-12 22:56
Saridakis Manolis13-Oct-12 22:56 
AnswerRe: Error in Messagebox solution Pin
Eddy Vluggen14-Oct-12 0:40
professionalEddy Vluggen14-Oct-12 0:40 
AnswerRe: Error in Messagebox solution Pin
Dave Kreskowiak14-Oct-12 3:58
mveDave Kreskowiak14-Oct-12 3:58 
QuestionProblem with OpenCvSharp Pin
Daniel Heinsohn13-Oct-12 11:54
Daniel Heinsohn13-Oct-12 11:54 
AnswerRe: Problem with OpenCvSharp Pin
Eddy Vluggen14-Oct-12 0:40
professionalEddy Vluggen14-Oct-12 0:40 
GeneralRe: Problem with OpenCvSharp Pin
Daniel Heinsohn14-Oct-12 14:01
Daniel Heinsohn14-Oct-12 14:01 
QuestionRe: Problem with OpenCvSharp Pin
Eddy Vluggen15-Oct-12 0:08
professionalEddy Vluggen15-Oct-12 0:08 
Questionwant to see 1page when MDI use. Pin
Subhajit00113-Oct-12 6:15
Subhajit00113-Oct-12 6:15 
AnswerRe: want to see 1page when MDI use. Pin
Dave Kreskowiak13-Oct-12 7:02
mveDave Kreskowiak13-Oct-12 7:02 
QuestionDrawing a 3D polygon from coordinates (KML) Pin
tokano13-Oct-12 5:20
tokano13-Oct-12 5:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.