Restart crashing modules in windows
stanc at al.com.au
Wed Jan 16 00:08:49 CET 2008
Mike Driscoll wrote:
> On Jan 14, 9:02 pm, Astan Chee <st... at al.com.au> wrote:
>> I have a python module that keeps on crashing with various windows
>> errors (not BSOD but the less lethal windows XP popup ones). Now these
>> are intentional and rather sporadic so I cant really solve it by
>> attempting to fix the crash; rather what Im trying to do is make another
>> module outside it that restarts this module every time it crashes. Is
>> this possible?
> If you're not going to catch the error that is causing the crash, then
> I think your only option is to restart your application with an
> external program.
My understanding of using an external application to do this is to first
create my module as an executable using py2exe. Then I have another
python script that runs this module like this
and make this other python script into another executable and execute
this one. If Im not mistaken, when the python program crashes, the
thread is killed. is this correct or how should I do it?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list