RTC Forums

Subscription => Support => Topic started by: Director on February 22, 2010, 10:21:30 AM



Title: Bug in Rtc.HTTPClient.UserLogin
Post by: Director on February 22, 2010, 10:21:30 AM
Here is extremely simple demo - http://rapidshare.com/files/354141559/ProxySettings_Test.zip.html

How to reproduce the bug:
1. Open project
2. Setup RtcHttpClient1 component (set all UserLogin fields to any values)
3. Close project
4. Open project again
5. Oops. UserLogin fields sets to default values :(

How to fix it:
Code:
unit rtcHttpCli;

interface

...

TRtcHttpClient = class(TRtcDataClient)
 private
  ...
  procedure SetUserLogin(const Value: TRtcHttpUserLogin);  
  ...
 public
  ...
  property UserLogin:TRtcHttpUserLogin read FUserLogin write SetUserLogin;
  ...
 end;

...

implementation

...

procedure TRtcHttpClient.SetUserLogin(const Value: TRtcHttpUserLogin);
 begin
  FUserLogin.Assign(Value)
 end;

...

end.

Maybe there are more same bugs in RTC SDK, but I have faced only with it...


Title: Re: Bug in Rtc.HTTPClient.UserLogin
Post by: D.Tkalcec (RTC) on February 22, 2010, 10:48:56 AM
You are correct. Most TPersistent values are not handled correctly. But it is easy to find all the places where this is happening and I am working on a fix now.

Best Regards,
Danijel Tkalcec


Title: Re: Bug in Rtc.HTTPClient.UserLogin
Post by: D.Tkalcec (RTC) on February 22, 2010, 05:15:17 PM
All issue with TPersistent class descendants are fixed in RealThinClient SDK 3.59 (available for download from RTC SDK PRO Downloads area).

Best Regards,
Danijel Tkalcec