RE: IDOM memory model

2002-03-21 Thread Paul Burlumi
Martin, I am looking to do something very similar to that proposed by Jason, but looking at the current v1.7.0 code base I can't make sense of your code below. Won't calling delete on fDocument in giveDocument() delete the memory of what you are about to return? I think the code should look somet

Re: IDOM memory model

2002-02-18 Thread Jason E. Stewart
"Cornelius, Martin" <[EMAIL PROTECTED]> writes: > > Is there some fundamental reason that the memory needs to be managed > > by the parser? Why can't it be managed by the document? > > I think this is merely a design issue: As the parser creates documents, it > should also be responsible of dele

RE: IDOM memory model

2002-02-18 Thread Cornelius, Martin
Hello Jason, you wrote > Is there some fundamental reason that the memory needs to be managed > by the parser? Why can't it be managed by the document? I think this is merely a design issue: As the parser creates documents, it should also be responsible of deleting them. Solely for this reason t

IDOM memory model

2002-02-15 Thread Jason E. Stewart
Hey Tinny and all, It seems that I had a fundamental misunderstanding with the IDOM's memory model. I had assumed that the memory was held by the *Document* but it turns out that it's held by the *Parser*. That creates a problem. A number of people using the Perl API are using the parser to creat