Re: DocumentLoader memory leaking on cleanup

Mathias Bauer <[email protected]>
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <[email protected]>
On 10/26/2010 05:26 PM, Chris Rider wrote:

> As you can tell from the log file, the close method is being called, but
> not the dispose.
>
> Do I need to dispose also? Couldn't really find enough documentation to
> figure out *exactly* what those two methods entail. I kind of assumed it
> was something like the difference between clearing the objects memory or
> not.

No, it a component supports XCloseable, you must call close(), otherwise 
dispose(). As close() will call dispose() internally, all you can get 
from an explicit dispose() call is a DisposedException.

Regards,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Oracle: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.