Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
In the main-thread I have a procedure "AppMessage" (Application.Onmessage := "AppMessage". During the 30 seconds (sleep) this procedure is never called. I think I didn't understand something with threading??
TPdaSyncThread = class(TThread) private procedure doProcess; protected procedure Execute; override; public constructor Create(... myParams); end; constructor TPdaSyncThread.Create(... myParams); begin FreeOnTerminate := True; inherited Create(False); .... end; procedure TPdaSyncThread.doProcess; begin Sleep(30000); //just to "simulate" calling the function that will return after a timeout end; procedure TPdaSyncThread.Execute; begin while not Terminated do begin Synchronize(self,doProcess); end; end;