You are not logged in.
Pages: 1
Hi Arnaud, im using a managed Record as Result of a SOA function.
result = packed record
public
class operator Initialize(out Dest : result);
end;
// SOA Function:
function Test : result;
if Test is called directly result.Initialize is called
if it is called remote (by mormot.core.interface.CallMethod) result.Initialize is not called and record uninitialized
is it possible to call it ?
Last edited by itSDS (2025-08-06 09:09:25)
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
Delphi managed records are not supported by the framework yet.
You could use a class instead (since the class instance would be managed by the SOA).
Or just define your own initialization method, or make "result := Default" in your implementation.
Offline
Pages: 1