> On Fri, Jun 04, 2004 at 05:50:40PM +0100, Tony Dodd wrote:
>> You did remember to initialise, Xerces, didn't you?
>
> Yup, I've got the following call in a try/catch block:
>
>       XMLPlatformUtils::Initialize();
>
> Taking a second look at the CreateDOMDocument.cpp example, I noticed
> that most of the main() function (the part that does the "real work",
> i.e. actually creates the DOMDocument) is nested in an inner block.  Why
> is this?

The end of the block destroys all objects declared in that block. As a
result, the destructors of these objects (if any) are guaranteed to run
before the call to XMLPlatformUtils::Terminate().

Jeroen.

> I did that in my code as well, although the result was no
> different (still seg faults).
>
> Thanks again,
> 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