Crashing on exit

I’ve got an app that crashes when I close it by pressing Esc or the close button, but not when stopping it through Xcode. Obviously not a huge deal, since it only crashes when I’m done with it, but still annoying.

When it does crash, the error pops up in the debug navigator as –[QTKitVideoGrabber stop], then the main window opens up and marks line 583 with “Thread 1: signal SIGABRT”. The console displays libc++abi.dylib: terminating with uncaught exception of type CAException.

The application is displaying video streams from a couple of Firewire cameras. Any ideas?

can you post your code somewhere?

did you sort this out? I am having the same problem…


oh, I sorted it just now. my problem was having a duplicated instance of ofVideoGrabber, one in the main cpp and the other one in the class that controls the camera.