Hi All,
I'm having an issue with a program.

It seems to run (continuously) any amount of time from a few days to about a week.

Eventually, and seemingly randomly I get the following Errror. None of the users see a consistent item that is causing the hang, and sometimes it's even just running with no interaction with the user.

AppHangB1
Hang Type 4.

I just get long signature alpha numerics as a debugging tool.

Is there any way to
a) force my program to kick out of the hang if it detects one, (and I guess, how could I write a separate thread to detect a hang?)
b) find out where my program is hanging?
c) if none of these options are viable, some coding practices I might be doing wrong that I could change to help avoid this?

Thanks in advance,
Nick