What's the best way to handle camera disconnections in CVB

Hi Greg,

OK, I understand.

You should call G2Freeze() when a disconnect was detected. Then G2Wait returns with a CVC_E_GRABABORTED error. If you do not call G2Freeze() in time the G2Wait will return with a CVC_E_TIMEOUT error.

Beyond that i realized that the current Online Help is wrong with one statement: You do not need to reload the driver when the reconnected event is fired. You only need to start the grab.

One more thing which is important with the callbacks and the G2Grab Interface functions: You should not call G2Freeze() and G2Grab() within the callback itself. These functions need to be called in another thread context. The callback functions should only be used to inform the thread which controls the acquisition that it need to be stopped or started.