Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use TIdHttp inside TThread anonymous function doesn't raise exceptions
#4
(09-02-2020, 06:58 PM)Ahmed Sayed Wrote: Yes What I want is to simulate the same thing that is being done in for instance TRestClient/TRestRequest where I get any response from the server in the received content it self without the need to catch any exceptions.

Well, I already showed you the 2 ways to accomplish that with TIdHTTP.

(09-02-2020, 06:58 PM)Ahmed Sayed Wrote: The DoHTTPErrorEvent is where I get the catched error and pass it to the memo in the main program.

You still have not shown what your synchronization code actually looks like. You say you are not seeing anything in your TMemo, but you haven't shown HOW you are actually using TIdHTTPEx and trying to get its data into the TMemo. I can't help you without seeing that code.

Reply


Messages In This Thread
RE: Use TIdHttp inside TThread anonymous function doesn't raise exceptions - by rlebeau - 09-02-2020, 11:45 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)