.Net application crashes
My.Net application exits unexpectedly on certain computers (this is a desktop application). I tried to catch the exception, but the operator catch
I was using just cannot catch the exception that was happening.
Any ideas how to solve or diagnose this problem?
Note. This exception only occurs on the client machine, release mode, where we don't have a debugging tool.
Note 2: The application event log does not contain any errors.
a source to share
You can try adding an event handler to System.Windows.Forms.Application.ThreadException and System.AppDomain.CurrentDomain.UnhandledException to see if you can see which exception (if any) causes your application to terminate.
a source to share
This is almost always caused by a COM / PInvoke issue where the native code you are using throws a Win32 exception. Under certain circumstances, Windows will choose to simply abort the process rather than just terminate it when it is severe government damage such as an invalid stack pointer.
If you can determine what specific behavior precedes the shutdown, you can narrow your search for the / PInvokes controls that might be causing the problem.
a source to share