You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Jason E. Stewart" <ja...@openinformatics.com> on 2002/04/25 03:15:27 UTC
Bug in IDOMEntityImpl?
Hey All,
Why does hasChildNodes() have a call to cloneEntityRefTree()?
bool IDEntityImpl::hasChildNodes() const
{
cloneEntityRefTree();
return fParent.fFirstChild!=0;
}
All it's doing is comparing the parents first child to NULL, why
should it bother cloning?
I have a program that grabs all the entities in a document and prints
out there names and values, and it segfaults here because there is a
circular reference that got created and cloneEntityRefTree() just
loops endlessly.
When I removed the call to cloneEntityRefTree() everything works as it
did before - which doesn't solve the problem of how the circular ref
got created, but at least I get the behavior I used to get.
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org