Christian K?hrt wrote:
> I created a simple document with docbook included in the application.
> the document included a lot of pictures and after reopening the document
> 4 times I got a out of memory exception.
> 
> the problem is every time when the document is closed the memory isnt
> freed. 

That's right and that's expected. After all documents are closed, most
commands still keep a hidden reference to the last active document.

But this does not explain why reopening the same document 4 times causes
an out of memory exception.



> is there a workaraund to avoid this memory leak? 
...
> i made some scans with jprobe to local the and there i saw that every
> time after a document was closed and the garbage collector ran that 20mb
> stucking still in the VM. also there are big byte arrays (i guess this
> are the pictures) hanging around unfreed by the garbage collector.

I need to know which version of Java you use and also, I would like to
download your test document with all its images. You can directly
(mailto:hussein at pixware.fr) send me the URL of a zip, tar.gz or tar.bz2
archive.


Reply via email to