delphi cannot access protected symbol thread.Terminated

delphi

自定義線程定時器類threadTimer=class(thread),

聲明變量threadTimer1,釋放時無法調用threadTimer1.Terminated,

原因爲threadTimer1跟類聲明不在同一個unit文件裏,而 thread.Terminated是protected,不可以跨單元訪問。

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