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 bu...@apache.org on 2001/02/23 18:06:19 UTC
[Bug 692] Changed - DOM_DOMImplementation::createDocument() call fails
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=692
*** shadow/692 Fri Feb 23 08:32:35 2001
--- shadow/692.tmp.21529 Fri Feb 23 09:06:19 2001
***************
*** 41,44 ****
DOM_Document* pDoc = (DOM_Document*)&m_doc;
//CLEAN UP OF OBJECTS and TERMINATE call called.
! }
--- 41,67 ----
DOM_Document* pDoc = (DOM_Document*)&m_doc;
//CLEAN UP OF OBJECTS and TERMINATE call called.
! }
!
! ------- Additional Comments From jsp@pkc.com 2001-02-23 09:06 -------
! Reporter, please note that Bugzilla is a database for tracking bugs in Apache
! software such as Xerces, not a forum for technical support. Questions of that
! nature should be directed to the xerces-c-dev mailing list
! (xerces-c-dev@xml.apache.org).
!
! That said, the closing comment in your code snippet says "TERMINATE call called
! ." If by this you mean that you call XMLPlatformUtils::Terminate() before
! exiting the function, this is the cause of your problem.
! XMLPlatformUtils::Initialize() must be called before any other calls to Xerces
! are made, and XMLPlatformUtils::Terminate() MAY be called when you are through
! with Xerces. Once you've terminated, you cannot make further Xerces calls.
!
! The call to Terminate() is not actually required at this point; it's there
! purely to satisfy memory leak detectors. If you don't call Terminate(), the
! worst thing that will happen is that you'll get leaks reported if you run such a
! detector, and a small amount of memory allocated by Xerces will have to be
! cleaned up by the runtime, rather than by Xerces. If you don't run a leak
! detector, it's unlikely that you'll ever know the difference.
!
! The situation with Initialize()/Terminate() is slightly more complex than I've
! indicated. If you need to know more, please post to the mailing list.