How to clean/displose a JCanvas and avoid Out-Of-Memory
Hi,
I'm still developing a Netbeans Platform application. I'm having a problem with a memory leak if I use a JCanvas3D inside a TopComponent. If I open and close the TopComponent many times (depending on the heapsize) I run into OutOfMemory (to many int[] from the created BufferedImage of the JCanvas3D). Is there something that I forgott to do to completely destroy a JCanvas3D including the BufferedImage an DataMemoryInt stuff.
Re: How to clean/displose a JCanvas and avoid Out-Of-Memory
Administrator
Maybe use getOffscreenCanvas3D(), try to get the buffered image used internally and flush it. Temporary objects should not put you into a situation in which you run out of memory.