.Net Application crash No exception Thrown

G

Guest

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.


I have tried adding add a handler to
System.Threading.Thread.ThreadException in our main.sub. This had no effect
on catching anything.

As I mentioed even turning on catch all excpetions in VS doesn't seem to
catch anything, the application just quits.

Any suggestions would be greatly appreciated
 
R

Richard Blewett [DevelopMentor]

Sounds to me like you might be attempting to update the UI from a background thread. This is one of the symptoms.

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

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.


I have tried adding add a handler to
System.Threading.Thread.ThreadException in our main.sub. This had no effect
on catching anything.

As I mentioed even turning on catch all excpetions in VS doesn't seem to
catch anything, the application just quits.

Any suggestions would be greatly appreciated
 
G

Guest

Hello,

Wouldn't this exception be caught or at least show up in visual studio when
debugging. I think most code is surronded by try catch statements that would
catch an error and log it.

Is it possible that this type of error wouldn't be caught by a catch
exception ex statement?

Any advice on how we could determine if this is the case?

Thanks,

Jared
 

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

Top