RTC Forums
November 28, 2024, 04:03:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Bug in Rtc.HTTPClient.UserLogin  (Read 5305 times)
Director
Newbie
*
Posts: 24


« 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 Sad

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...
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 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
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #2 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 16 queries.