monitor a C++ OpenFrameworks application, for freezing or memory leaks, then force quit and restart?

540 views Asked by At

I am running an Open Frameworks application. It sometimes freezes, and I'm not sure why and I want the application to force-quit then relaunch if it freezes. It doesn't crash, it just freezes.

Is there a way to monitor if there’s a memory leak , or if an application freezes or stops responding? Then ensure that the application force quits and restarts?

Of course figuring out why it's freezing is going to be best, but from the console I haven't yet been able to figure out when or why (it's after many hours of running)

1

There are 1 answers

0
Trayvig N On

Try the ofxWatchdog addon: https://github.com/toolbits/ofxWatchdog

Launches a second app to watch yours for errors and stalls, then restarts.