RTC Forums
November 24, 2024, 09:39:00 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
Accessing the GUI from events in MultiThreaded mode
Pages: [
1
]
« previous
next »
Print
Author
Topic: Accessing the GUI from events in MultiThreaded mode (Read 4982 times)
zxplzzc
RTC Expired
Posts: 8
Accessing the GUI from events in MultiThreaded mode
«
on:
November 12, 2011, 09:24:03 AM »
How can I write the following codes correctly?
procedure TMainForm.RtcHttpClient1ConnectError(Sender: TRtcConnection;E: Exception);
begin
if not Sender.inMainThread then
Sender.Sync(RtcHttpClient1ConnectError);
else
begin
RzStatusPane1.Caption:=E.Message;
end;
end;
Thanks!
Logged
zxplzzc
RTC Expired
Posts: 8
Re: Accessing the GUI from events in MultiThreaded mode
«
Reply #1 on:
November 12, 2011, 09:51:39 AM »
I see:
Sender.Sync(RtcHttpClient1ConnectError,E)
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: Accessing the GUI from events in MultiThreaded mode
«
Reply #2 on:
November 12, 2011, 10:23:57 AM »
Correct. The Sync method needs to be called with the event to be synchronized and all the parameters which that event is receiving, except "Sender".
Best Regards,
Danijel Tkalcec
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...