OptimizeIt shows you why an object is pinned in memory. It's a bit tedious (and this is from memory as I don't have a copy here) but if you go to the page which shows the instances and select the one you think should be garbage collected you can then see the tree of references that point to it. The tedious part is that you have to walk each path of the tree to see if it ends at a root. (I think you see a different icon in the tree when it does.)
Dave Wathen Canzonet Limited http://www.canzonet.com mailto:[EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marijn H. van der Ploeg Sent: 06 March 2002 11:56 To: Advanced Swing Subject: Memory leak while displaying pictures Dear all, I hope to have your help in a rather annoying problem I have: I have made an application that is centered around a JPanel (double buffered) that is used for displaying pictures (JPEG). It is also possible to change the currently displayed picture, and herein lies my problem: Somehow a copy is being kept of the image data; I used OptimizeIt, and it is clear that some ridiculously large int[] is still haning around, and refuses to be gc-ed. I thought I cleaned everything up nicely (remove from MediaTracker, flushing Image-data), but to no avail.... Has anyone encountered this before? Does anyone know how I can rech this data to remove it? Hope you can help, because the pictures can get up yo 32 Mb in size, so I get an OutOfMemoryException pretty quick... :( TIA Cheers, Marijn _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing
