IndySoap Leaking Objects

Giganews Newsgroups
Subject: IndySoap Leaking Objects
Posted by:  Eric erhardt (erhar…@earthlink.net)
Date: Tue, 15 Jul 2003

I am getting a Leaking Object report for TIdSoapDateTime. Can anyone help?

Code snipit...

procedure TForm1.LoadPageCounts;
var
  soapDate: TIdSoapDateTime;
begin
try
SNMP:=TSNMPSend.Create;
pcIntF:= GetIpagecounts(idSoapClientWInInet1);
soapDate:= TIdSoapDateTime.Create;

[.. Do a bunch of SNMP crap ...]

if SysType <> 5 Then
begin
soapDate:= DateTimeToIdSoapDateTime(now);
pcIntf.InsertPageCount(0,txtCustNo.text,s1,s2,soapDate,StrToIntDef(s4,0),Str
ToIntDef(s5,0),s3,0);
Memo1.Lines.Add('Adding Record to server for '+s1);
end
finally
SNMP.Free;
soapDate.Free;

Replies