windows - Using a VB6 program to check another VB program's Error Codes -


i need develop "watchdog" program detect when program has crashed, kill process , restart it. unfortunately, original developer of program no longer here, , computer no longer able compile without buying expensive license. program in question crashes vb error code ("runtime error 5 ... etc). need detect when program enters state. alternatively, need able see first program's error handler if possible, can check if in "trappable" error, or @ least, able check current status of program in question.

programs isolated each other. cpu makes every program thinks it's program running and, in 32 bit, has 4 gb of memory it's self. program cannot affect or monitor another.

so debugging exception above because computers wouldn't usable without , built cpu/os.

so run vb6 program under debugger, biz computers have ntsd installed. note not basic debugger machine code debugger.

if it's window wait window title. can use api calls findwindow monitor window titles.

hwnd findwindow(          lpctstr lpclassname,     lpctstr lpwindowname ); 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -