Just brainstorming here: you could inspect the code for such constructs and not execute those you could execute the code in a separate thread, and that thread must send a signal to the parent thread at given intervals, if the thread doesn't respond, it must be bad so kill it (this is similar to a watchdog timer from processor level operation) HTH, -D