473,473 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Application vanishes

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 client.

What could cause a 100% .Net based app to vanish without warning?

The major components and namespaces we use:

Windows.Forms
Threading
Remoting
Infragistics TreeView
DevComponents DotNetBar

Thanks for any hints. Urs
Nov 16 '05 #1
3 1277
My guess ais some .Dispose mathod wrongly put in an event delegate.. or an
override event..

Nirosh.

"Urs Vogel" <uv****@msn.com> wrote in message
news:eS**************@TK2MSFTNGP15.phx.gbl...
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 client.

What could cause a 100% .Net based app to vanish without warning?

The major components and namespaces we use:

Windows.Forms
Threading
Remoting
Infragistics TreeView
DevComponents DotNetBar

Thanks for any hints. Urs

Nov 16 '05 #2
Hi Urs,

The only time I've seen this behavior is with a background thread calling the UI directly. I know you have said you use the InvokeRequired/BeginInvoke pattern everywhere, but it may be worth double checking just in case.

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<eS**************@TK2MSFTNGP15.phx.gbl>

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 client.

What could cause a 100% .Net based app to vanish without warning?

Nov 16 '05 #3
Richard

We double checked the InvokeRequired, which is mainly used when the server
sends event messages for that client. The problem is that it may happen on
any control, absolutely arbitrary. For instance, it happened to myself when
clicking on the boolean drop down in a property grid, where absolutely no
code is executed except the standard internal propGrid bool dropdown
handler. At this time, no timers, background threads or call backs were
running/expected, no events received from the server, the app was in idle
state. And it only happens on a click or keystroke, never by itself. Does
this give you some more ideas what else we could look for?

Thanks, Urs

"Richard Blewett [DevelopMentor]" <ri******@develop.com> schrieb im
Newsbeitrag news:%2****************@tk2msftngp13.phx.gbl...
Hi Urs,

The only time I've seen this behavior is with a background thread calling
the UI directly. I know you have said you use the
InvokeRequired/BeginInvoke pattern everywhere, but it may be worth double
checking just in case.

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<eS**************@TK2MSFTNGP15.phx.gbl>

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 client.

What could cause a 100% .Net based app to vanish without warning?

Nov 16 '05 #4

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

Similar topics

2
by: Phil Powell | last post by:
I have a variable with a value that I've verified countless times by using both echo and print_r; both indicate the variable exists and has a value. The moment I instantiate a class where this...
9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
3
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
5
by: cj | last post by:
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...
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...
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...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
4
Jeffofalltrades
by: Jeffofalltrades | last post by:
I have a floating DHTML menu that works in Frame 3, but vanishes after leaving and returning with the Back button. Refreshing that frame doesn't work, but refreshing the whole website does. It's at...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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,...
1
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...
0
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...
0
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 ...

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.