delphi cannot access protected symbol thread.Terminated

delphi

自定义线程定时器类threadTimer=class(thread),

声明变量threadTimer1,释放时无法调用threadTimer1.Terminated,

原因为threadTimer1跟类声明不在同一个unit文件里,而 thread.Terminated是protected,不可以跨单元访问。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章