Hi, In my multithread server I am using following code (before running Form itself or course)
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomainUnhandledException);
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(ApplicationThreadException);
The called methods write exceptions to the list so I can fix it easily. But today I came and saw that VS has thrown NullReference exception and I have no clue why it was not catched?
I can reproduce it by calling: stream=null; stream.Flush()
The program do jump to exception catching scope but it stays on the Flush line..strange. Any other exception is handled well..maybe its beacuse this method is not implemented yet?
Im sure I have seen "Object reference not set to an instance of object" in my "exceptions" list and the program continued. Why isn't this particular exception caught?