Click here to Skip to main content
15,905,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: uncaught exception handlers Pin
George_George27-Apr-08 19:55
George_George27-Apr-08 19:55 
GeneralRe: uncaught exception handlers Pin
N a v a n e e t h27-Apr-08 22:38
N a v a n e e t h27-Apr-08 22:38 
GeneralRe: uncaught exception handlers Pin
George_George28-Apr-08 1:20
George_George28-Apr-08 1:20 
GeneralRe: uncaught exception handlers Pin
N a v a n e e t h28-Apr-08 19:49
N a v a n e e t h28-Apr-08 19:49 
GeneralRe: uncaught exception handlers Pin
George_George29-Apr-08 2:25
George_George29-Apr-08 2:25 
GeneralRe: uncaught exception handlers Pin
N a v a n e e t h29-Apr-08 3:45
N a v a n e e t h29-Apr-08 3:45 
GeneralRe: uncaught exception handlers Pin
George_George29-Apr-08 4:21
George_George29-Apr-08 4:21 
GeneralRe: uncaught exception handlers Pin
N a v a n e e t h29-Apr-08 19:44
N a v a n e e t h29-Apr-08 19:44 
George_George wrote:
but in the situation of executing asynchronous method call, we can catch the exception (even if unhandled in the thread pool worker thread) in EndInvoke in main thread.


This how asynchronous methods works. It will handle exception safely and throws when end method is called.

George_George wrote:
when there is unhandled exception in another thread, we can still catch it and not make process terminated.


You are always allowed to catch exceptions in the same thread. Cross-thread exception handling is only not possible. In this case also you are handling exceptions in the same thread, so there won't be any issues. Asynchronous method runs on a thread pool thread and handles exception inside that method and keep it until end is called. When end is called, it will check exception is null, if not null it will be thrown.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: uncaught exception handlers Pin
George_George29-Apr-08 20:23
George_George29-Apr-08 20:23 
GeneralRe: uncaught exception handlers Pin
N a v a n e e t h30-Apr-08 17:01
N a v a n e e t h30-Apr-08 17:01 
GeneralRe: uncaught exception handlers Pin
George_George1-May-08 2:42
George_George1-May-08 2:42 
GeneralRe: uncaught exception handlers Pin
N a v a n e e t h1-May-08 6:05
N a v a n e e t h1-May-08 6:05 
GeneralRe: uncaught exception handlers Pin
George_George1-May-08 21:38
George_George1-May-08 21:38 
GeneralRe: uncaught exception handlers Pin
#realJSOP27-Apr-08 3:08
professional#realJSOP27-Apr-08 3:08 
GeneralRe: uncaught exception handlers Pin
George_George27-Apr-08 3:32
George_George27-Apr-08 3:32 
GeneralRe: uncaught exception handlers Pin
Spacix One28-Apr-08 7:02
Spacix One28-Apr-08 7:02 
GeneralRe: uncaught exception handlers Pin
George_George29-Apr-08 2:20
George_George29-Apr-08 2:20 
GeneralRe: uncaught exception handlers Pin
N a v a n e e t h29-Apr-08 3:48
N a v a n e e t h29-Apr-08 3:48 
GeneralRe: uncaught exception handlers Pin
George_George29-Apr-08 4:24
George_George29-Apr-08 4:24 
GeneralRe: uncaught exception handlers Pin
Spacix One29-Apr-08 4:21
Spacix One29-Apr-08 4:21 
GeneralRe: uncaught exception handlers Pin
George_George29-Apr-08 4:26
George_George29-Apr-08 4:26 
GeneralRe: uncaught exception handlers Pin
Spacix One29-Apr-08 5:31
Spacix One29-Apr-08 5:31 
GeneralRe: uncaught exception handlers Pin
George_George29-Apr-08 19:46
George_George29-Apr-08 19:46 
GeneralRe: uncaught exception handlers Pin
PIEBALDconsult27-Apr-08 4:43
mvePIEBALDconsult27-Apr-08 4:43 
GeneralRe: uncaught exception handlers Pin
George_George29-Apr-08 2:29
George_George29-Apr-08 2:29 

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.