G
Guest
Hello,
I added this event to handle unhandled exceptions:
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(UnhandledException);
Recently one occured and added the following to my log file:
UnhandledException, Exception='System.IO.IOException: An unexpected network
error occurred.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.FlushWrite()
at System.IO.FileStream.Flush()
at System.IO.FileStream.Dispose(Boolean disposing)
at System.IO.FileStream.Finalize()' (Loader.UnhandledException)
I see the stack trace starts at Loader.UnhandledException, which is the
event handler I added. However, all I do there is display an error dialog
and log the ExceptionObject. Does this mean the unhandled error did not
originate from within my app? If that is not the case, why can't I see a
more detailed stack trace, indicating from where the error originated?
Thanks.
I added this event to handle unhandled exceptions:
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(UnhandledException);
Recently one occured and added the following to my log file:
UnhandledException, Exception='System.IO.IOException: An unexpected network
error occurred.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.FlushWrite()
at System.IO.FileStream.Flush()
at System.IO.FileStream.Dispose(Boolean disposing)
at System.IO.FileStream.Finalize()' (Loader.UnhandledException)
I see the stack trace starts at Loader.UnhandledException, which is the
event handler I added. However, all I do there is display an error dialog
and log the ExceptionObject. Does this mean the unhandled error did not
originate from within my app? If that is not the case, why can't I see a
more detailed stack trace, indicating from where the error originated?
Thanks.