1

I need to execute a console application periodly in windows XP. So I use the following python code:

import subprocess
import time
while True:
    subprocess.call("test.exe")
    time.sleep(1.0)

the problem is that test.exe crashs occasionally, and an error report messagebox pops-up, unless I close the messagebox manually, the python program will be paused at subprocess.call().

After some search, I disabled the error report messagebox as the following link:

http://www.howtogeek.com/howto/windows/disable-those-annoying-x-application-has-encountered-a-problem-and-must-be-shut-down-messages-in-windows-xp/

the error report messagebox gone, but another application error messagebox pops-up (sorry the messagebox is in Japanese):

enter image description here

it will also cause the python program pause. I just want the test.exe crashes silently, and let the python program calls it again in next period. How can I prevent the Application Error messagebox shows up?

I can't fix the bugs in test.exe, because I have not source code of it.

HYRY
  • 94,853
  • 25
  • 187
  • 187
  • See this answer: http://stackoverflow.com/questions/396369/how-do-i-disable-the-debug-close-application-dialog-on-windows-vista – jschorr Sep 30 '11 at 02:07
  • @jschorr: It seems that the solution is for windows vista. I searched "Windows Error Reporting" in my Registry, and found nothing. I also created the entries manually, but the messagebox remained. I also deleted the AeDebug\Debugger entries, the messagebox poped-up without the cancel button. – HYRY Sep 30 '11 at 02:28
  • Sorry, I thought that it was for xp – jschorr Sep 30 '11 at 02:37
  • @eryksun : thank you, finally I use autoit3 to close the messagebox. – HYRY Oct 01 '11 at 10:18

0 Answers0