C++ Builder 參考手冊(cè) ? TThread ? CheckThreadError
頭文件:#include <System.Classes.hpp>
命名空間:System::Classes
類:TThread
訪問權(quán)限:protected:
函數(shù)原型:
void __fastcall CheckThreadError(int ErrCode);
void __fastcall CheckThreadError(bool Success);
System::Classes::TThread::CheckThreadError 是 System::Classes::TThread 的成員函數(shù)捧挺,
參數(shù):
ErrCode:錯(cuò)誤編碼虑绵,操作系統(tǒng) GetLastError 返回的錯(cuò)誤碼,0:沒有錯(cuò)誤闽烙;
Success:false 失敗翅睛,true 成功。
返回值:
無黑竞。
- 線程內(nèi)部調(diào)用的函數(shù)捕发,檢查執(zhí)行是否有錯(cuò)誤,如果執(zhí)行有錯(cuò)誤很魂,會(huì)拋出 EThread 異常扎酷。
參考:
- System::Classes::TThread::FatalException
- System::Classes::TThread::OnTerminate
- System::Classes::TThread::Terminated
- System::Classes::TThread::Terminate
- System::Classes::TThread::Finished
- System::Classes::TThread
- System::TObject
- VCL 類繼承關(guān)系
C++ Builder 參考手冊(cè) ? TThread ? CheckThreadError