Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,258 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 2,186 people online right now. Registration is fast and FREE... Join Now!




C# Program Form Closes But Still Is Listed In "Task Manager"

 
Reply to this topicStart new topic

C# Program Form Closes But Still Is Listed In "Task Manager"

olimits7
19 Aug, 2008 - 06:45 AM
Post #1

New D.I.C Head
*

Joined: 19 Aug, 2008
Posts: 1

Hi,

I have a C# program that I run on my computer and it works fine. I minimize the program to the taskbar, and I usually step away from my computer as the program runs.

However, when I return to my computer the program form closes on me and isn't listed in the taskbar anymore, but I can still see the *.exe running in the "task manager". It looks like the program is still running fine from the "task manager" but since the form is closed I can't tell how much progress the program has made...

1. Has anyone ever experienced this before with a C# or any other program?
2. Does anyone know why this happens?
3. Is there a way I can open the program again from the current *.exe that is still running?

Thank you,

olimits7
User is offlineProfile CardPM
+Quote Post

SpiderSpartan
RE: C# Program Form Closes But Still Is Listed In "Task Manager"
19 Aug, 2008 - 07:05 AM
Post #2

D.I.C Head
Group Icon

Joined: 6 Feb, 2008
Posts: 66



Thanked: 3 times
Dream Kudos: 25
My Contributions
I can't say that I've seen this before, but to bring up the running window try right clicking on the program in the task manager and selecting "switch to". I don't know how long your code is, but If you could post it, that would help us to see why this could be happening.
User is offlineProfile CardPM
+Quote Post

killnine
RE: C# Program Form Closes But Still Is Listed In "Task Manager"
19 Aug, 2008 - 08:12 AM
Post #3

D.I.C Head
**

Joined: 12 Feb, 2007
Posts: 107



Thanked: 3 times
My Contributions
It sounds to me like your application is crashing. I usually make a habit of addressing these sorts of bugs before deploying, but I have had that same sort of thing happen when debugging my apps.

Verify you aren't making invalid casts or anything. Also, it may be good to use a try-catch block and catch ApplicationException, so if ANYTHIGN happens, you can see it. Typically this is not good practice, but it might let you know if you are crashing.

This post has been edited by killnine: 19 Aug, 2008 - 08:20 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 04:32AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month