TThread::CheckThreadError - C++ Builder

C++ Builder 参考手册 ➙ TThread ➙ CheckThreadError


头文件:#include
命名空间:System::Classes
类:TThread
访问权限:protected:
函数原型:

void __fastcall CheckThreadError(int ErrCode);
void __fastcall CheckThreadError(bool Success);

System::Classes::TThread::CheckThreadError 是 System::Classes::TThread 的成员函数,

参数:

ErrCode:错误编码,操作系统 GetLastError 返回的错误码,0:没有错误;
Success:false 失败,true 成功。

返回值:

无。

  • 线程内部调用的函数,检查执行是否有错误,如果执行有错误,会抛出 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 类继承关系

C++ Builder 参考手册 ➙ TThread ➙ CheckThreadError

你可能感兴趣的:(TThread::CheckThreadError - C++ Builder)