는 사람은 다음과 "디버거 오류 알림" C++ 빌더 XE에서 의미하는 무엇을 나에게 설명해 주시겠습니까 : 나는 예외를 던질 필요가있을 때응용 프로그램 정의 예외
"Project ... faulted with message: 'application-defined exception (code 0x0eefface) at 0x755ad36f. Process Stopped. Use Step or Run to continue."
그것은에만 발생합니다 - 던져의 호출을 이 오류가 발생합니다. 이 문제에 대한 정보를 찾을 수 없습니다. 예외의
던지기 :
#define MY_ERROR_CODE 0xE0000046
throw TMyTrouble(MY_ERROR_CODE, "My error message"); // calling of this raises the application-defined exception...
잡기 : 예외의
try{
Function(); // function that raises the exception TMyTrouble
}
catch(...){ // this catch should catch the exception but it doesn't
// do something
throw; // throw to upper layer
}
정의 :
class TMyTrouble{
public:
TMyTrouble(int errorCode = 0xFFFFFFFF, AnsiString errorMessage = "Unknown error") { FMessage = errorMessage; FCode = errorCode;}
__property AnsiString Message = {read = FMessage};
__property unsigned long Code = {read = FCode};
private:
unsigned long FCode;
AnsiString FMessage;
};
던져진 예외를 처리하는 어딘가에 'catch'가 있습니까? – hmjd
네,하지만 아무것도 잡아 내지 않습니다 - 이상한 점은 – Martinique
'throw '와'catch' 코드와 예외 정의를 게시 할 수 있습니까? – hmjd