You did remember to initialise, Xerces, didn't you?

Tony Dodd
Oxford University Research Technology Group

>-----Original Message-----
>From: Matt Garman [mailto:[EMAIL PROTECTED] 
>Sent: 04 June 2004 16:25
>To: [EMAIL PROTECTED]
>Subject: DOMImplementation::createDocument() causing seg fault
>
>
>Hello,
>
>I'm trying to implment a method called createDOMDocument() in a custom
>C++ class I wrote.  The intent of this method is to create a 
>DOMDocument
>that represents the internal data structure of the class (so I 
>can in turn use DOMWriter to write my data structure to an XML file).
>
>My createDOMDocument() method is essentially the main() 
>function from the CreateDOMDocument.cpp example included with 
>Xerces-C.  However, whenever I run my application, it crashes 
>with a segmentation fault on the following line:
>
>DOMDocument* doc = impl->createDocument(0, X("todolist"), 0);
>
>Note that the impl object is instantiated as follows:
>
>DOMImplementation* impl =
>DOMImplementationRegistry::getDOMImplementation(X("Core"));
>
>For what it's worth I'm doing this development on Linux with 
>the following complier:
>
>g++ (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
>
>I'll gladly post my function if anyone would like to see it 
>(but, it's virtually identical to the main() in 
>CreateDOMDocument.cpp).  Short of building a debug version of 
>Xerces-C and stepping through createDocument(), does anyone 
>have any ideas what might be causing the crash?
>
>Thanks,
>Matt
>
>--
>Matt Garman
>email at: http://raw-sewage.net/index.php?file=email
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to