473,320 Members | 2,202 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Application just vanishes without any warning....

cj
Normally, a dotNET application will throw an exception when something
goes wrong, and the exception can be caught easily and reported to the
user. However, users have been reporting that our application just
simply vanishes without any warning. No exception seems to be thrown,
otherwise it would have been caught.

It is also seemingly undeterministic, making it really hard for us to
find out the cause of the problem. If the application has used up its
memory allocation, then we would at least get an OutOfMemoryException
or something of the sort.

Suggestions anyone?

Nov 17 '05 #1
5 1938
On 26 Jul 2005 14:08:13 -0700, cj wrote:
Normally, a dotNET application will throw an exception when something
goes wrong, and the exception can be caught easily and reported to the
user. However, users have been reporting that our application just
simply vanishes without any warning. No exception seems to be thrown,
otherwise it would have been caught. Suggestions anyone?


I can see two things that could cause this behaviour:
- You are swalowing exceptions somewhere with something like:
try
{
// some code
}
catch {}

- You are handling the Application.ThreadException and
AppDomain.UnhandeldException events and swallowing the exceptions

Try to find out where you are swallowing exception and where this could
cause your application to die silently. This would be a beginning.
Nov 17 '05 #2
cj
Thanks, I will have a look at that, however, from what our users have
described, there are no signs of the application exiting (i.e.
flickering from forms closing) from an Application.Exit() call. The
way it was described sounded more like Environment.Exit() was called,
immediate killing of the process. We don't have any Environment.Exit
calls preceding Application.Exit calls (although it could probably be
argued that Environment.Exit should'nt even be used?).

Even if exceptions were swallowed, it seems like code execution would
at some point in time reach an Application.Exit call.

Nov 17 '05 #3
cj
I've been looking at using WinDbg to log all exceptions that my
application generates and spit out the stacktrace, so that we might
have a chance of pinpointing the cause of the vanishing problem.

Does anyone know a way of setting WinDbg to do this everytime an
exception occurs? Right now you have to have to type in "!sxe clr" to
get it to break on exceptions, and when it actually does, type
!clrStack -all, to get the stack trace information.

It would be great if it just did this automatically then we could just
examine the most recent stacktrace once the application vanishes.

Nov 17 '05 #4
We have been dealing with that exact scenario in an application that we've
developed: With no discernable pattern, the program just “disappears”. I
have a case opened with Microsoft Support and they have been examining debug
dump files for a few weeks now, but have not determined the cause. They DO
know that it is a memory heap corruption that is occurring (apparently in the
GC), but don’t know what is causing it.

I can’t believe that I have found someone else experiencing this problem!
"cj" wrote:
Normally, a dotNET application will throw an exception when something
goes wrong, and the exception can be caught easily and reported to the
user. However, users have been reporting that our application just
simply vanishes without any warning. No exception seems to be thrown,
otherwise it would have been caught.

It is also seemingly undeterministic, making it really hard for us to
find out the cause of the problem. If the application has used up its
memory allocation, then we would at least get an OutOfMemoryException
or something of the sort.

Suggestions anyone?

Nov 17 '05 #5
I'm experiencing this same problem.

I suspect that it has something to do with the fact that my code is
multithreaded and I am making calls updating the UI but ONLY through Invoke.
It was my understanding that updating things like progress bars or even
displaying images is OK with forked threads as long as it's done through the
Invoke method. I await enlightenment.

Thanks,

John
Nov 17 '05 #6

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

Similar topics

1
by: Sin Jeong-hun | last post by:
Hello. I created a very simple program which just pops up a MessageBox saying "Hello,world!". I compiled it and put it on my homepage and created a hyperlink to it. When I click the hyperlink to...
3
by: Urs Vogel | last post by:
Hi we encountered a strange problem in our Windows client. It sometimes (fortunately rarely) just disappears with all open windows, without throwing an exception, either after a click on any...
3
by: David Cho | last post by:
I've noticed that my code in InitializeComponent where I am linking event handlers to events vanishes from time to time. One of the things that triggers the disappearance is when I do something...
7
by: Ralf Gedrat | last post by:
Hello! I have some Vb.Net applications, which are terminated at indefinite times without message. If I call in the program regulated system.GC.Collect, then the program is terminated here...
17
by: Arthur van Dorp | last post by:
Hi all This is a bit off topic but I don't know where else to ask (please tell me if you know). I'm going to build a web application. The choice of the underlying database wasn't difficult....
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
4
by: Markus Stoeger | last post by:
Hi, I have a problem with Application.Run() when Windows is shutting down. Please have a look at the copy&paste example program below. The application has no forms. It has only got a notify...
21
by: cddiller | last post by:
Hi All, My office doesn's use VB all that much (mostly embedded systems development). I adapted a co-workers VB application (from VB 6.0) to suit my needs using VB 2005 Express. VB 2005...
1
by: Cramer | last post by:
I'm running XP Pro/SP2 + patches and updates, with Visual Studio Professional 2008 (and no prior installation of Visual Studio ever installed). When attempting to open an ASP.NET Web application...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.