>>if you got the document from the parser then you need to adopt it if
you want to release it, otherwise the parser will do >>it for you.

Ahhh there is my answer !!! Thanks !!!

BTW what is "adopting a document" all about, I've never heard of that
concept, of course I am new to all
this stuff , so its all new to me anyway....   

FYI:
The samples do not explain what and why, they just show how with very
little explanation,  it would help
if the samples had more verbosely instructive comments in the code since
there purpose is to instruct right ?????

I hate sample's that "show" but do not explain !!! Please forgive my
prejudice  

Keep Up the Good Work , and thanks again for the help  

-----Original Message-----
From: Gareth Reakes [mailto:[EMAIL PROTECTED] On
Behalf Of Gareth Reakes
Sent: Wednesday, March 24, 2004 2:12 AM
To: [EMAIL PROTECTED]
Subject: Re: Clean-up question IBM Xerces 2.2

Hi,

> How do you delete/release and or free the dom object tree when you are

> done with it..

Are you talking about the parser or the doucument? You can delete the
parser, but you should only release the document as it does some
additional cleanup. Additionally, if you got the document from the
parser then you need to adopt it if you want to relase it, otherwise the
parser will do it for you.

>
> I tried dom->release() but I got a nasty 0C4 abend with the following 
> trace:

Did you call delete on the parser after the release without adopting the
document?

> Also how do you and/or can you clean up the memory attached to the 
> implementation pointer ???

Thats taken care of. If you have any doubts about this kind of stuff a
good place to start is the samples.

Gareth

-- 
Gareth Reakes, Managing Director            +44-1865-811184
Parthenon Computing                http://www.parthcomp.com




---------------------------------------------------------------------
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