none
Unhandeled Exception in Using-Block causes Windows to show Dialog "App.. doesn't work any more" RRS feed

  • Frage

  • If an unhandeled Exception occurs in a using-block, windows shows a dialog (I have a german windows version) "App doesn't work any more, searching for a solution of the problem" with the button "Cancel". If user is clicking this cancel button, the Dispose Method of the using object is called. If user is waiting for the Dialog to show the buttons "Debug" and "Terminate App" and clicks one of these buttons or closes the dialog, the dispose method is not called, because the app thread is instantly terminated by windows (or so it seems).

    Is this a feature or a bug or the best solution possible?



    Donnerstag, 12. Juli 2012 09:39

Antworten

Alle Antworten