#1 2020-01-04 12:58:23

VojkoCendak
Member
From: Celje Slovenia
Registered: 2012-09-02
Posts: 93

published object setter method exception in json to object

Hi,  Windows 10 pro, Rin 10.3.3 ent

  TtcpParkCLientBase=Class(TInterfacedObject);

  TObejctWithObejctSetGet = class(TtcpParkCLientBase,ItcpParkClientCustom)
  published
   ...
    property MyObject: TMyObject read GetMyObject write setMyObject;  // if we omit write setBarieraObj we get exception from json to object
   ...

Interfaced service:
TParkingsArray=class(TObjectList);

procedure TAllParkService.GetObjectList(const DeviceID: integer;[b]out Park: TParkingsArray[/b]; out Err: Integer);
begin
   // here we return objectlist of TtcpParkClientCustom objects and when method returns framework throws exception (without write setBarieraObj)
end;


Thank you ,
Vojko Cendak

Offline

Board footer

Powered by FluxBB