Machine Vision Camera SDK (C) Developer Guide
void
);
*pUser
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
cbException
[IN] Callback function to receive exception messages, see the details below:
void(__stdcall* cbException)(
unsigned int nMsgType,
void
*pUser
);
nMsgType
Exception message type
pUser
User data
pUser
[IN] User data
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
Call this API after the device is opened by MV_CC_OpenDevice . When device is exceptionally
disconnected, the exception message can be obtained from callback function. For disconnected
GigE device, first call MV_CC_CloseDevice to shut down device, and then call
MV_CC_OpenDevice to reopen the device.
For exception message type macro definition see below:
Macro Definition
Value
MV_GIGE_EXCEPTION_DEV_ 0x00008001
DISCONNECT
This API is not supported by CameraLink device.
See Also
MV_CC_OpenDevice
Description
Device disconnected.
47
    "