Random Crash with no exception

  • Thread starter Thread starter Jared Kitcher via .NET 247
  • Start date Start date
J

Jared Kitcher via .NET 247

I am working on a .Net project and our application randomlycrashes with no exception being thrown. The application justdisappears, like someone would have clicked the exit button. This occurs both when we are debugging and when the applicationis running after an install. I have been stepping through codeand then just had the application stop and VS just goes back tonormal, like I had told it to exit the code. I have read abouta couple of other applications having the same problem, but havenever seen a resolution. I have turned on catching of allexceptions in the debugger but it still seems to not catch whatis going on. Any ideas on a way to find out what is happening? We can not reproduce it by any events, it just seems to happenwhile we are running the program, sometimes it will be hours,other times it will be 3 minutes. It does seem to occur moreoften, the more the application is being used. Meaning, justleaving the application on, but not working with it, does notsees to cause the crash as much as having someone working withthe application.
 
In the startup of your program (Use a Module.Sub Main()) add a handler to
System.Threading.Thread.ThreadException

Look for that.


I am working on a .Net project and our application randomly crashes with no
exception being thrown. The application just disappears, like someone would
have clicked the exit button. This occurs both when we are debugging and
when the application is running after an install. I have been stepping
through code and then just had the application stop and VS just goes back to
normal, like I had told it to exit the code. I have read about a couple of
other applications having the same problem, but have never seen a
resolution. I have turned on catching of all exceptions in the debugger but
it still seems to not catch what is going on. Any ideas on a way to find
out what is happening? We can not reproduce it by any events, it just seems
to happen while we are running the program, sometimes it will be hours,
other times it will be 3 minutes. It does seem to occur more often, the
more the application is being used. Meaning, just leaving the application
on, but not working with it, does not sees to cause the crash as much as
having someone working with the application.
 
Hi Jared

Can you say what your application is doing? For example, does it perform
serial comms, or is it multithreaded and accessing the UI?

Charles


I am working on a .Net project and our application randomly crashes with no
exception being thrown. The application just disappears, like someone would
have clicked the exit button. This occurs both when we are debugging and
when the application is running after an install. I have been stepping
through code and then just had the application stop and VS just goes back to
normal, like I had told it to exit the code. I have read about a couple of
other applications having the same problem, but have never seen a
resolution. I have turned on catching of all exceptions in the debugger but
it still seems to not catch what is going on. Any ideas on a way to find
out what is happening? We can not reproduce it by any events, it just seems
to happen while we are running the program, sometimes it will be hours,
other times it will be 3 minutes. It does seem to occur more often, the
more the application is being used. Meaning, just leaving the application
on, but not working with it, does not sees to cause the crash as much as
having someone working with the application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top