Connecting Tech Pros Worldwide Help | Site Map

Random Crash with no exception

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 21st, 2005, 01:48 AM
Jared Kitcher via .NET 247
Guest
 
Posts: n/a
Default Random Crash with no exception

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.
--------------------------------
From: Jared Kitcher

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>3FNVJNhJS0+Kw/2ZyMhUxA==</Id>

  #2  
Old November 21st, 2005, 01:49 AM
CJ Taylor
Guest
 
Posts: n/a
Default Re: Random Crash with no exception

In the startup of your program (Use a Module.Sub Main()) add a handler to
System.Threading.Thread.ThreadException

Look for that.


"Jared Kitcher via .NET 247" <anonymous@dotnet247.com> wrote in message
news:eVosb5WoEHA.1644@tk2msftngp13.phx.gbl...
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.
--------------------------------
From: Jared Kitcher

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>3FNVJNhJS0+Kw/2ZyMhUxA==</Id>


  #3  
Old November 21st, 2005, 01:49 AM
CJ Taylor
Guest
 
Posts: n/a
Default Re: Random Crash with no exception

In the startup of your program (Use a Module.Sub Main()) add a handler to
System.Threading.Thread.ThreadException

Look for that.


"Jared Kitcher via .NET 247" <anonymous@dotnet247.com> wrote in message
news:eVosb5WoEHA.1644@tk2msftngp13.phx.gbl...
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.
--------------------------------
From: Jared Kitcher

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>3FNVJNhJS0+Kw/2ZyMhUxA==</Id>


  #4  
Old November 21st, 2005, 01:49 AM
Charles Law
Guest
 
Posts: n/a
Default Re: Random Crash with no exception

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


"Jared Kitcher via .NET 247" <anonymous@dotnet247.com> wrote in message
news:eVosb5WoEHA.1644@tk2msftngp13.phx.gbl...
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.
--------------------------------
From: Jared Kitcher

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>3FNVJNhJS0+Kw/2ZyMhUxA==</Id>


  #5  
Old November 21st, 2005, 01:49 AM
Charles Law
Guest
 
Posts: n/a
Default Re: Random Crash with no exception

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


"Jared Kitcher via .NET 247" <anonymous@dotnet247.com> wrote in message
news:eVosb5WoEHA.1644@tk2msftngp13.phx.gbl...
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.
--------------------------------
From: Jared Kitcher

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>3FNVJNhJS0+Kw/2ZyMhUxA==</Id>


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.