| | |
| | | |
| | | if (!pCameraControl->Connect(*it)) |
| | | { |
| | | //#3361_ LYW CF AOI Review 전설비 Align Cam 비정상 연결 시 팝업 기능 추가 START |
| | | if (it->GetLibraryType() == CAMERA_LIBRARY_PYLON) |
| | | { |
| | | CString strMessage; |
| | | strMessage.Format(_T("Align카메라 연결 실패 idx = %d"), nCamIndex); |
| | | if (IDOK == AfxMessageBox(strMessage, MB_OK | MB_ICONQUESTION)) |
| | | { |
| | | g_pLog->DisplayMessage(_T("Align Camera Connet Fail! Exit Review System")); |
| | | //업데이트시 |
| | | //exit(1); |
| | | return FALSE; |
| | | } |
| | | |
| | | } |
| | | else if(it->GetLibraryType() == CameraLibrary_Sapera) |
| | | { |
| | | CString strMessage; |
| | | strMessage.Format(_T("Review카메라 연결 실패 idx = %d"), nCamIndex); |
| | | if (IDOK == AfxMessageBox(strMessage, MB_OK | MB_ICONQUESTION)) |
| | | { |
| | | g_pLog->DisplayMessage(_T("Review Camera Connet Fail! Exit Review System")); |
| | | //업데이트시 |
| | | //exit(1); |
| | | return FALSE; |
| | | } |
| | | } |
| | | |
| | | ////#3361_ LYW CF AOI Review 전설비 Align Cam 비정상 연결 시 팝업 기능 추가 END |
| | | delete pCameraControl; |
| | | continue; |
| | | } |