User Manual of Machine Vision Camera SDK Demo (C#)
SDK (C#).
Steps:
1. Assign a variable for callback proxy member in Forml class.
Example: MyCamera.cbOutputdelegate pCallBackFunc;
2. Create an example for pCallBackFunc.
Example: pCallBackFunc = new MyCamera.cbOutputdelegate (cbExceptiondelegate);
While, the cbExceptiondelegate 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: m_pMyCamera.MV_CC_RegisterExceptionCallBack_NET (pCallBackFunc, IntPtr.Zero);
Note:
When the camera is disconnected, there will be callback exception, and you can reconnect the camera in
exceptional callback.
5
    "