delphi
自定义线程定时器类threadTimer=class(thread),
声明变量threadTimer1,释放时无法调用threadTimer1.Terminated,
原因为threadTimer1跟类声明不在同一个unit文件里,而 thread.Terminated是protected,不可以跨单元访问。
delphi
自定义线程定时器类threadTimer=class(thread),
声明变量threadTimer1,释放时无法调用threadTimer1.Terminated,
原因为threadTimer1跟类声明不在同一个unit文件里,而 thread.Terminated是protected,不可以跨单元访问。