Frame Grabber SDK (Windows-C) Developer Guide
Sleep(10);
}
_getch();
}
// Clear residual data from stdin.
void ClearStdin(void)
{
char c = '\0';
while (1)
{
c = getchar();
if ('\n' == c || EOF == c)
{
break;
}
}
}
// Exception information callback function.
void ExceptionCb(MV_FG_EXCEPTION_TYPE enExceptionType, void* pUser)
{
switch(enExceptionType)
{
case EXCEPTION_TYPE_INTERFACE_DISCONNECT:
{
printf("Exception: Interface Disconnected!\n");
break;
}
case EXCEPTION_TYPE_DEVICE_DISCONNECT:
{
printf("Exception: Device Disconnected!\n");
break;
}
case EXCEPTION_TYPE_STREAM_ABNORMAL_IMAGE:
{
printf("Exception: Abnormal Image!\n");
break;
}
case EXCEPTION_TYPE_STREAM_LIST_OVERFLOW:
{
printf("Exception: Buffer List Overflow, Clear the Oldest Frame!\n");
break;
}
case EXCEPTION_TYPE_STREAM_DISCONNECTED:
{
printf("Exception: Stream Disconnected!\n");
break;
}
default:
108
    "