I´ve done a simple php script that returns a exactly xml datapacket from a mysql server over the web, based on the ClientDataset.CommandText property.
procedure TMainDataModule.AbertasAfterOpen(Dataset: TDataset);
begin
DataSet.Tag := 0;
end;
procedure TMainDataModule.AbertasBeforeOpen(DataSet: TDataSet);
begin
if Dataset.Tag = 0 then
begin
DataSet.Tag := 1;
with DataSet as TClientDataSet do
XMLData := myWebService.XMLDataPacket(CommandText);
end;
end;
MyWebService is a simple class to post the CommandText to the php script, decode/encode64 the xml and return the data.
It works ok, but madExcept/FastMM reports memory leaks in ClientDataset.SetXmlData.
I cant see why, any ideas?
Thanks in Advance.