variable 'self' inaccessible here due to optimization

Giganews Newsgroups
Subject:variable 'self' inaccessible here due to optimization
Posted by: Rick Guo
Date:Sat, 24 Jul 2010

Hi, Thanks for reading.
I am using xml file to read some app setting,  there a class have member xmlDoc : IXMLDOMDocument;
My code :
//create a node and a attribute for this node
newNode := xmlDoc.createElement(szndName);
    attrNode := xmlDoc.createAttribute(VALUE_ATTR);
I debug it, first line,  xmlDoc ok
when run second line
xmlDoc value display as 'variable 'self' inaccessible here due to optimization'.

Then when using xmlDoc again(Run this code function again for next item.), xmlDoc  it is nil, my app crashed.

Thanks for any help on it.

Replies