473,839 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 OutOfMemoryExce ption
or something of the sort.

Suggestions anyone?

Nov 17 '05 #1
5 1962
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.Thr eadException and
AppDomain.Unhan deldException 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.Exi t() call. The
way it was described sounded more like Environment.Exi t() was called,
immediate killing of the process. We don't have any Environment.Exi t
calls preceding Application.Exi t calls (although it could probably be
argued that Environment.Exi t should'nt even be used?).

Even if exceptions were swallowed, it seems like code execution would
at some point in time reach an Application.Exi t 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 OutOfMemoryExce ption
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
1501
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 the .exe file, unlike the normal .exe files, it is just executed without popping up a dialogue like "". I wonder is this only because I created the application and somehow ..NET Framework recognized that I created it and ran it? Or any person...
3
1306
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 control or a keystroke, although the app makes 100% use of structured exception handling, including all event handlers and Main(). For threaded ops, we make strict use of InvokeRequired. No WinAPI calls are made, no unmanaged code is used in this...
3
1445
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 wrong the the aspx page, causing an "Error Creating Control" error. It's not always reproducible, but when I do that, some of the lines of code in InitializeComponent vanish without warning. Is this a "feature" from Microsoft? Is there a way to...
7
6719
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 sporadically without message. It's not possible to debug in visual studio, i get no exceptions (application is terminated unexpectedly without message).
17
1982
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. After a few preliminary tests I'm confident that PostgreSQL is absolutely up to the task. But I'm at a loss regarding the "middleware". I know Apache quite well, so I wouldn't mind continuing using it. But what language/application server/whatever do...
20
2727
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 contrast to one of them always being 'modal' (e.g., if you are moving over a picture the 'Info' form will update the (x,y) screen location in realtime even if not the selected form. Also note that this example implies the various forms can communicate...
4
3414
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 icon in the system tray and it uses Application.Run() to keep the message loop running. When the user clicks the icon, the application should shut down and exit. So far that works fine.
21
7153
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 Express auto-updated the program from the old version. I can run the published application just fine from my PC and my co- workers, but I cannot get it to run on any other machine. I've tried installing the .NET Framework (V 1.1 and 2.0, both the
1
3519
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 project, Visual Studio shuts down immediately and with no error message. I can open Visual Studio - but when subsequently attempting to open the project, Visual Studio immediately shuts down. More specifically:
0
9855
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
9697
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
10293
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7828
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5866
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4484
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
4064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3133
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.