Results 1 to 3 of 3
- 01-17-2010, 05:52 PM #1
Member
- Join Date
- Mar 2008
- Posts
- 15
- Rep Power
- 0
free memory of bufferedimage problem
hi all,
i have the following code.
BufferedImage img=new BufferedImage(29342,450,BufferedImage.TYPE_INT_RGB );
Graphics2D g2d=img.createGraphics();
g2d.drawImage(r.getAsBufferedImage(), 0, 0, null);
g2d.finalize();
g2d.dispose();
img.flush();
img=null;
but i cannot free img object all uts memory since i know there is the reference to it, but for this problem how to solve it? thanks.
-
Cross-posted: Java 2D - free memory of bufferedimage problem
mr empty: cross-posting can frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. No one likes wasting their time, especially a volunteer. The polite thing to do would be to not do this, but if you feel that you absolutely must, to at least provide links in both cross-posts to each other.
__________________
-
This is one argument for using variables in the most restricted scope possible. I'm not sure what else you are looking for here.
Oh, and please look at my signature regarding code tags here (and elsewhere).
Similar Threads
-
image processing memory problem
By mr_empty in forum Java 2DReplies: 7Last Post: 12-16-2009, 11:03 AM -
Memory leakage problem
By sankarguru in forum Advanced JavaReplies: 3Last Post: 03-26-2009, 08:52 PM -
how do I increase memory allocated to code cache (Non Heap Memory)
By manibhat in forum Advanced JavaReplies: 2Last Post: 08-21-2008, 07:33 PM -
Memory leakage problem
By Amali_Prem in forum New To JavaReplies: 0Last Post: 01-17-2008, 10:45 AM -
How Can I get free memory ?
By sathish_2111 in forum NetworkingReplies: 2Last Post: 07-19-2007, 04:29 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks