I have code typhoon with lazarus installed after a long strugle I have managed to include the unit IdSync to my project.
How can I pass parameteres to a function that I want to execute in the main thread from TIdNotify ?
I have code typhoon with lazarus installed after a long strugle I have managed to include the unit IdSync to my project.
How can I pass parameteres to a function that I want to execute in the main thread from TIdNotify ?
You have to override the TIdNotify.DoNotify() method, then you can pass whatever parameters you want, eg:
.
Presumably, you want the calling thread to specify the parameter values, so just make them members of the class, eg:
.