Causes of Application Hangs



Is there a list anywhere of causes of application hangs? By hangs I mean an
app that is unresponsible to any mouse or keyboard interaction and will not
auto-redraw. A ctrl-alt-del shows the app running at nearly 100% CPU and a
forceful kill is the only way to pacify your PC?

I have a fairly intensive application which will hang at random intervals
(sometimes can take minutes, sometimes can take days).

I checked all my Do/While and Do/Until loop conditions and none have an
unexitable condition. Even if it was there, wouldn't the DoEvents command
from within still keep the app happy?

So, what else could it be? Obviously it's a programming error of some sort
because the software operates just fine with no memory leaks of any sort
normally. It just gets "stuck" in this state and I'd like to know why.

At the very least it would be nice to be *where* the program is stuck when
this happens (which Sub/function, etc..).

Thanks in advance,
Mark


.



Relevant Pages

  • Can a user app hang a *IX system?
    ... OS is MontaVista Embedded Linux on a xscale big-endian cpu. ... Our app starts and hangs, and also hangs the system, can't ctrl-brk the app; ... I have a smaller app that tests the no. of threads, semaphores, and files ...
    (comp.unix.programmer)
  • What could cause IMediaControl::Stop() to hang?
    ... I have an app that needs to run 24x7. ... The duration of the loop is about 3 minutes. ... number of clips in the loop is about 10. ... According to the app's logs the thread hangs on a call to ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Can a user app hang a *IX system?
    ... > OS is MontaVista Embedded Linux on a xscale big-endian cpu. ... > I tried using gdb to attach to the process, and gdb also hangs. ... > Further, while building the app, if I had a large no. of objects, it would ... development systems configured such that /tmp was in the root file ...
    (comp.unix.programmer)
  • Re: Delphi 2005 Update 4 IS needed !!!
    ... Loading - Sometimes it doesn't even load, just hangs and I have to kill it with task manager. ... It seems, but isn't certain, that bringing another app to the foreground while the splash screen is up either triggers it or makes it happen more often. ... No debugger window, no exception, no nothing, just bam, back to the IDE. ... I don't use this for my own apps, but I need to develop an assembly for someone else, and so I have my test code as VCL.NET for now. ...
    (borland.public.delphi.non-technical)
  • Re: OOs best feature survey results
    ... > your app other than the GUI. ... And, I think GUI's should be defined in meta-data of some sort, ... that would divorce a GUI engine ... > OOP, like I said, I see as more a syntactic than semantic tool, so ...
    (comp.object)