How to call methods of a thread from a thread?
I just learned that creating and using a Vcl.TTimer
from a worker thread is not thread safe. My worker thread works fine ‘most of the time’ using the Vcl.TTimer
. I found a class TTimerThread
based on events which works fine also, but I don’t know how to combine both classes that TTimerThread
has access to the methods of my worker thread.
Delphi Berlin, How to call methods of a thread from a thread
I just learned that creating and using a Vcl.TTimer from an own worker thread is not thread safe. My worker thread works fine ‘most of the time’ using the vcl.ttimer. I found a class TTimerThread based on events which works fine also but i don’t know how to combine both classes that TTimerThread have access to the methods of my worker thread.