Hi there,
using Delphi XE5, I always have the “ReportMemoryLeaksOnShutdown” option set to true in debug mode.
When executing the following code,
function TServiceRegister.Application: Integer;
var
lArr : DataParameterArray;
rc : TDARemoteCommand;
begin
result := -1;
rc := GetRemoteCommand;
rc.Execute('RegisterApplication', ['name', 'id_application'], ['Test', result]);
lArr := DataParameterArray(rc.ExecuteCall.Params.FindParam(rc.ExecuteCall.IncomingParametersParameter).AsComplexType);
result := DataParameter(lArr.Search('Name', 'id_application')).Value;
end;
I get the following memory leak when closing the application :
Being definitely new to RemObjects and DataAbstract, I guess that maybe I am doing things wrong and there is a better (simpler) way to achieve this trivial task…
However, I have to admit that everything works as expected and the remote command is executed!
Could somebody point me to the right direction?
Thanks in advance.
Kind regards,
Charles