I have a function that uses TRESTClient (and associated classes) in an EXE. The function works great in the EXE. I am attempting to move that function to a thread in a console app (later this will be a service).
I created a new class MyService = class(TThread). The application flow is:
Start console app.
Create MyService
From MyService.Excute call the function (good so far)
In the function:
Run an ADO query (this works)
Create the TRESTClient (and associated objects). These are created dynamically.
Call the TRESTRequest.Execute method. In TRESTRequest.Execute the entire application appears to hang.
Anyone have any pointers? Thx!