OpToSoapDomComv.TRefCache.FNodes contains references to non-existing XMLNodes

Posted by Bascy on Stack Overflow See other posts from Stack Overflow or by Bascy
Published on 2011-01-10T12:50:27Z Indexed on 2011/01/10 12:54 UTC
Read the original article Hit count: 186

Filed under:
|
|

In our D2007 application we are using a Webservice, accessed with a THTTPRIO object. When the TDatamodule containing the THTTPRIO object is Destroyed an access violation occurs.

This AV is raised when the TSoapDOMConvert is freed, which in turn executes:

TRefCache(RefMap[0].Instance).Free

calling

destructor TRefCache.Destroy;
begin
  FHREFs.Free;
  FMHREFs.Free;
  FNodes := nil; //Causes AV
end;

FNodes is a TInterfaceList containing one reference to IXMLNodes, but the object seems to have been freed before all this.

Does anyone know this problem? How to solve it?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about soap