RAD Studio XE5 ( C++ Builder XE5) 사용
개발한 것 디버깅 중입니다.
프로그램 수행 중에 Log File에 쓰는 로직이 있는데,
디버거가 fprint() 루틴에서 서버리는데요.. Break Point로 잡은 곳도 아닌데요.
이벤트 로그 창에는 아래와 같이 찍히는데.. 무엇이 문제인지 모르겠네요..
Event Log 창에는 Debug 정보가 없다는 메세지가 찍히구요..
혹 이런 경험이 있으신 분들은 조언을 부탁드립니다.
AnsiString sFile;
sFile = sFile.sprintf("%04d%02d\\%04d%02d%02d.log",iYear,iMonth,iYear,iMonth,iDay);
sFile = m_sHomeDir + "\\" + sFile;
FILE *fp = NULL;
errno_t error_no;
error_no = fopen_s(&fp, sFile.c_str(),"a");
if ( error_no != 0 ) return false; // file open error
if ( fp == NULL ) return false; // log file error
fprintf(fp, "%s\n", sLogMsg); // 여기서 디버거가 Stop되어버림.
fclose(fp);
Event Log의 내용
Thread Start: Thread ID: 6140. Process DataLogger.exe (6084)
Module Load: fwpuclnt.dll. No Debug Info. Base Address: $6AF70000. Process DataLogger.exe (6084) // No Debug Info
Thread Start: Thread ID: 3420. Process DataLogger.exe (6084)
Module Load: rasadhlp.dll. No Debug Info. Base Address: $6CF80000. Process DataLogger.exe (6084) // No Debug Info
|