Einzelnen Beitrag anzeigen

TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.060 Beiträge
 
Delphi 10.4 Sydney
 
#3

AW: TRESTRequest ExecuteAsync und FMX ShowMessage in OnAfterExecute

  Alt 6. Aug 2018, 08:28
Alternativ kannst du auch RESTRequest.SynchronizedEvents := True; schreiben und damit schon alles gelöst haben.

Delphi-Quellcode:
    /// <summary>
    /// Specifies if Events (such as OnAfterExecute) should run in the context of the main
    /// thread (true) or in the context of an arbitrary thread - which was created by the developer or by using
    /// ExecuteAsync.
    /// </summary>
    // <seealso cref="TCustomRESTRequest.ExecuteAsync" />
    property SynchronizedEvents: Boolean read FSynchronizedEvents write SetSynchronizedEvents default true;
  Mit Zitat antworten Zitat