473,890 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>
Nov 21 '05 #1
4 4787
In the startup of your program (Use a Module.Sub Main()) add a handler to
System.Threadin g.Thread.Thread Exception

Look for that.
"Jared Kitcher via .NET 247" <an*******@dotn et247.com> wrote in message
news:eV******** ******@tk2msftn gp13.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>
Nov 21 '05 #2
In the startup of your program (Use a Module.Sub Main()) add a handler to
System.Threadin g.Thread.Thread Exception

Look for that.
"Jared Kitcher via .NET 247" <an*******@dotn et247.com> wrote in message
news:eV******** ******@tk2msftn gp13.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>
Nov 21 '05 #3
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" <an*******@dotn et247.com> wrote in message
news:eV******** ******@tk2msftn gp13.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>
Nov 21 '05 #4
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" <an*******@dotn et247.com> wrote in message
news:eV******** ******@tk2msftn gp13.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>
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1766
by: Renzska | last post by:
I am getting a random crash in my program. I think it has to do with the only listbox I have. It uses the WMP to play songs and when a song completes I set the selected item in the listbox. I am assuming that is has to do with the listbox because of this line: "at System.Windows.Forms.ScrollableControl.WndProc(Message& m)" and the listbox is the only part of my program that has a scrollable control.
9
3864
by: greeningster | last post by:
I have written an application in Visual C++ for a customer but it seems to crash randomly. Could anyone give me any help on how I could track this down ? Also, there appears there might be memory leaks too. How can i track these down ?
8
15317
by: Gary Joy | last post by:
I really am banging my head with this one... I have a regular unmanaged C++ application that is using mixed DLLs to (amongst other things) call a C# back-end (which is using ADO .NET). I am getting random crashes, typically after 15-60 minutes of inactivity. The error message and call stack are listed below. Unhandled exception at 0x792483e0 (mscorwks.dll) in debug_build_wks_crash.dmp: 0xC0000005: Access violation reading location...
1
2274
by: Charles Law | last post by:
I seem to be posing a lot at the moment, so please accept my apologies. I can't say, categorically that the Infragistics tools are to blame, but I have had this intermittent problem now for two months, and all attempts to localise it have failed. I have looked at the Infragistics newsgroups and web sites, and there are hints that there are potential problems in this area, especially in a multi-threaded app (I have two or three threads...
0
301
by: Jared Kitcher via .NET 247 | last post by:
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...
6
3136
by: Ken | last post by:
When running a program in the debugger, what would cause it to crash without any error messages? I get "The program has exited with code 0 (0x0)". The program is a MDI app with threading for several serial ports. It only crashes when data is being received on one or more of the serial ports. Could someone please give me some ideas about what would cause a program to terminate in this way? Thanks....
5
4549
by: Sam Loveridge | last post by:
Hi All. I'm hoping someone can point me in the direction of a solution to unhandled exceptions in MDI child forms causing the application to crash. I've found various articles describing a method using Application.Run(new MyMainParentForm) to place in the application's Sub Main to allow catching of unhandled exceptions in the application. The problem I'm facing is that I want to be able to trap unhandled exceptions at the MDI child...
9
4996
by: Droopy | last post by:
Hi, I am running an application on 74 PC (1 instance on each PC). This morning, 2 applications crashes. There were neither popup windows signaling it nor dump file created. I only find in the event log an entry signaling a dotnet 2.0 runtime error : Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting
6
4811
by: bjornms | last post by:
The application i build in C#.net is crashing once a month. I can't reproduce the crash. Is there a way to track down where the program crashes, without putting logging everywhere in the code? Is there a way to get a stack trace of the crashing program (by the way, i'm new to C#.net, i have experience in (unmanaged) C++). Thanks in advance.
0
9976
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9815
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10802
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9618
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7160
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6035
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4665
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4259
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.