473,507 Members | 2,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running application GUI disappears

I wrote a windows application in C# (using visual studio 2003) which
I
am running as an executable on a Windows Server 2003 machine. The
application runs smoothly for days. Then out of nowhere, the GUI
diappears and there is no way that I can get back to the GUI. If I
look at the Task Manager, i can see the process of my application
running, and I can also view log files that my application has
created
continue to grow, but I cannot access the GUI of my applicaiton
anymore. Does anyone know what is going on and why?

Thanks!!!
herm

Jul 26 '07 #1
1 2242
On Wed, 25 Jul 2007 23:29:18 -0700, <he********@gmail.comwrote:
I wrote a windows application in C# (using visual studio 2003) which I
am running as an executable on a Windows Server 2003 machine. The
application runs smoothly for days. Then out of nowhere, the GUI
diappears and there is no way that I can get back to the GUI. If I
look at the Task Manager, i can see the process of my application
running, and I can also view log files that my application has created
continue to grow, but I cannot access the GUI of my applicaiton
anymore. Does anyone know what is going on and why?
Nope.

It sort of sounds like your form got closed somehow, but you have other
thread that are not background threads (that is, specifically marked as
background with the IsBackground property). It could be as simple as an
application that doesn't shut things down when the main form gets closed,
and then some user accidently closing the form, or some sort of bug that
causes the form to sponaneously close or be hidden.

I would say the first thing to do is override the OnFormClosed method, and
maybe also the OnVisibleChanged method, and include some sort of logging
or user alert to help you know if and when the form is closed or hidden.
If you can reproduce the issue in a debugger-friendly setting, go so far
as to include a call to Debugger.Break() in those methods, so that the
application just stops and you can take a look at what's closing the form.

If you want to get really fancy, I suppose you could do some tricks with
suspending the thread from a different thread, getting a stack trace, and
then allowing the main thread to continue. That may be overkill though,
depending on what else you can do.

Pete
Jul 26 '07 #2

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

Similar topics

4
6747
by: Bob | last post by:
Hi, I am using Office XP PIAs. I want to use Word/Excel to printOut documents w/o bringing up the application at all. When I set the Visible field to false, I still get the printing window...
3
1268
by: Chris Fink | last post by:
I am looking for a solution to use in an aspx web application that will redirect the user to a new page and display an animated gif indicating that processing is occurring, and when complete,...
4
1882
by: Amjad | last post by:
I have a program that updates an Excel sheet everytime the user presses a button. However, each time it creates a new instance of the Excel.exe application running in the background. I tried...
13
5054
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
2
1235
by: Frank_00001 | last post by:
I've migrated an application from VS 2003 to VS 2005. It worked fine in 2003; but I've been having issue in 2005. The latest is dealing with a DataSet that I have as an Application Variable. It...
4
4077
by: vul | last post by:
I start the application with Application.Run(New MDIMain) in Sub Main. MDIMain is the mdi form which loads and then calls Login form. I'm using Application.Exit to terminate my VB 2005 application...
1
4103
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
4
1672
by: needshade | last post by:
Platform : Windows XP Language : Visual Basic 6 Hi, I have a peculiar problem here. I created a VB6 program that during runtime when it is minimize, I can maxmise it by clicking my icon on...
0
1124
by: hermbagger | last post by:
I wrote a windows application in C# (using visual studio 2003) which I am running as an executable on a Windows Server 2003 machine. The application runs smoothly for days. Then out of nowhere,...
0
7223
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
7111
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...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
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...
1
5042
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
4702
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
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...

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.