User Manual of Machine Vision Camera SDK Demo (VB)
2. Create an example.
Example: Dim cbCallback As MyCamera.cbExceptiondelegate = New
MyCamera.cbExceptiondelegate(AddressOf cbExceptiondelegateFunc);
While, the cbExceptiondelegateFunc indicates the callback handling function, and it firstly makes the
operations of CloseDevice and DestroyHandle, then continuously attempts to reconnect the camera.
3. Register callback function by calling the callback function registration API after open the camera.
Example: dev.MV_CC_RegisterExceptionCallBack_NET(cbCallback, IntPtr.Zero);
Note:
When the camera is disconnected, there will be callback exception, and you can reconnect the camera in
exceptional callback.
5
    "