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 17:32:36 UTC

[Bug 692] New - 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.21426	Fri Feb 23 08:32:35 2001
***************
*** 0 ****
--- 1,44 ----
+ +============================================================================+
+ | DOM_DOMImplementation::createDocument() call fails                         |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 692                         Product: Xerces-C                |
+ |       Status: NEW                         Version: 1.4                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Critical                 OS/Version: Windows 9x              |
+ |     Priority: High                      Component: DOM                     |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-c-dev@xml.apache.org                                  |
+ |  Reported By: writetotinku@yahoo.com                                       |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I am calling below "SomeFunction" from a commandline client which invokes it 
+ again and again if user asks. FOr the first time I am able to create the 
+ document but after that each calls fails and I get in to the catch block 
+ mentioned below. What could be the reason and why it is failing. IS 
+ createDocument is unable to clean up the memory?
+ 
+ ::SomeFunction()
+ {
+         DOM_Node m_doc=NULL;
+ 
+         //Initialization of XML PLATFORMS UTILS DONE
+         DOM_DOMImplmentation impl1= new DOM_DOMImplementation();
+ 	try
+ 	{
+ 	//Create root node and whole DOM Document
+ 	m_doc = (DOM_Node)impl1->createDocument("",// namespace URI.
+ 						"BillingResult",// element name
+ 						/*DOM_DocumentType()*/ NULL);
+ 	                                  // document type object (DTD).
+ 	}
+ 	catch(...)
+ 	{
+ 		cout<<"In DOMException"<<endl;
+ 	}
+ 
+ 	DOM_Document* pDoc = (DOM_Document*)&m_doc;	
+         //CLEAN UP OF OBJECTS and TERMINATE call called.
+ }