I am already an experienced Delphi Developer however I have never used Threading. I have a working project that I need to add threading to some sections. The Project communicates with the Betfair API and it all works fine, has done so for years.
The problem has always been that when the program makes a call to the BetFair API servers there is a noticeable 1-2 second delay in the Main UI while the HTTP Client (Indy idHttp) connects to the Betfair server and retrieves the response. I want to add threading around this part of the program so that the UI continues without interruption.
I have already made a test program which creates a TThread and in the Execute section sends and receives the requested data from Betfair.
This code works OK except that the delay is still evident in the main code.
I have searched Google for solutions and none seem to relate.
What I am asking for is assistance to determine if a) my code is correct or b) how I can correct my code to solve this problem.
I don't have anyone else to ask about this problem.
14 freelancers are bidding on average $40/hour for this job
Hi. many years ago i did threading app with Indy.I did redy your explanation but unclear why threading not helps.. you probably doing something wrong. Can you send me some code where you initiate thread..
Hi, I'm expert in Delphi programming multi threading called api with UI non blocking actions. Please share your sample task source for fine tune your code. Thanks