Can someone explain why once a windows app crashes, it will usually crash every time you open it until you reboot?

minendo

Elite Member
Aug 31, 2001
35,560
22
81
Originally posted by: notfred
fvcking annoying :|
I have found that another app causes this problem. I have this problem a lot with AIM and have found that if I open Outlook then terminate the process, AIM will open fine.
 

KingNothing

Diamond Member
Apr 6, 2002
7,141
1
0
Could be the process is still hanging around too. If Electronics Workbench crashes, I have to go manually kill its process before I can restart it.
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
What's the application? Is it indeed a Windows app, or is it a console app?

Do you know what DLLs it loads? Does it load COM components? Are the COM components out-of-process? Do the out-of-process COM servers exist once the "parent" process is killed? Is it a .NET app?

There are many, many reasons why this could happen, but if you can answer all of the above, I can tell you what's wrong. If it's simply a normal app then everything loaded is removed once the process is destroyed. The only way any state of disorder would be persisted is if the process serialized its memory to disk, then deserialized it once it was opened again...
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
Originally posted by: MeanMeosh
manually kill the process. it'll work after that.

He said "every time you open it" thereby implying that the process was actually dead. Whether you kill it gracefully or manually, it's still dead.
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
As Descartes stated:

The program has not properly cleaned up after itself and some residue is hanging around.
When the program restarts, the original left overs are causing trouble; they are not in the proper startup state.

Windows does not cleanup after an application properly if the app does not cles down properly on its own.