Detect camera disconnect
There is a method to alert on camera disconnection/link loss.
To receive a connection loss event, KYDeviceEventCallBackRegister() should first be used to register a callback function.
When a camera link loss is detected, the software will fire an KYDEVICE_EVENT_CAMERA_CONNECTION_LOST_ID event with disconnected link details.
The event with KYDEVICE_EVENT_CAMERA_CONNECTION_LOST_ID id should be interpreted as KYDEVICE_EVENT_CAMERA_CONNECTION_LOST struct.
It contains information of disconnected camera, index of lost Frame Grabber physical link and lost Camera link.
When this event is received, user should close the associated camera.
Nevertheless, if connection is lost the following functions call, which requires a connected camera, will be blocked and return the