I have an app in which a thread is called every 5mins:
TFTPTh = class(TThread)
procedure Execute; override;
WatekFTP : TFTPTh;
and somewhere in the proggy there is
WatekFTP := TFTPTh.Create(False);
this works fine.
but if i do an application.terminate while the thread is running i get a runtime error
tried to check if the thread exists and if it did it was ok but if it didn't then the runtime error came up
what is the best way to control threads to get rid of this problem ??