A process watchdog timer for openFrameworks applications.
You can watch your application's hang-up, illegal memory access,
illegal instruction, segmentation fault, zero devide, abort (uncaught C++ exception).
Then exit safely or reboot application.
Only one function to use:
o ofxWatchdog::watch(int msec, bool reboot, bool override, bool verbose)
Optionally you can use:
o ofxWatchdog::clear(void)
Major modification supporting of 0.9.2
NEW:
int main(){
ofSetupOpenGL(1024,768, OF_WINDOW);
ofxWatchdog::watch(3000, true, true, true);
…
}
OLD:
int main(){
ofxWatchdog::watch(3000, true, true, true);
ofSetupOpenGL(1024,768, OF_WINDOW);
…
}
Development environment:
o <NEW!> MacOS X 10.11.3 + Xcode 6.2 + of 0.9.2 osx
o MacOS X 10.10.3 + Xcode 6.3.1 + of 0.8.4 osx
o ubuntu linux 14.04 LTS + Code::Blocks 13.12 + of 0.8.4 linux 64
o MacOS X 10.10 + Xcode 6.1 + of 0.8.4 osx
o MacOS X 10.9.4 + Xcode 5.1.1 + of 0.8.3 osx
o MacOS X 10.8.5 + Xcode 5.0 + of 0.8.0 osx
o MacOS X 10.7.5 + Xcode 4.6.2 + of 0.8.0 osx
ryokomy / ofxwatchdog Goto Github PK
View Code? Open in Web Editor NEWThis project forked from toolbits/ofxwatchdog
[openFrameworks] A process watchdog timer for openFrameworks applications.
License: MIT License