Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Reclaiming memory in buffered image

Started 1 month, 4 weeks ago by Rudra_Java
Hi, I have created a buffered image object,and everytime i am creating buffred irmage its taking memory. and the issue is tht its not freeing memory. even if i have added buffred image object into an arraylist and clearing the arraylist after operation. still it is not reclaims the memory.every time i am creating buffered image object it takes 2 mb memory. and not freeing memory .if i am...
Site: Sun Forums  Sun Forums - site profile
Forum: Java 2D   Java 2D
 - forum profile
Total authors: 3 authors
Total thread posts: 5 posts
Thread activity: no new posts during last week
Domain info for: sun.com

Other posts in this thread:

DarrylBurke replied 1 month, 4 weeks ago
1. Make sure that you are not retaining any references to the images. 2. Try invoking flush() on each image when you are done with it. 3. "created a buffered image object" could have any of several different meanings. To get better help sooner, post a SSCCE that clearly demonstrates your problem. Use code tags to post codes -- [ code]CODE[ /code] will display as CODE Or ...

Rudra_Java replied 1 month, 4 weeks ago
Hi DarrylBurke , Thanks for ur suggestion.. I have posted the code . Could you please check the same.. Thanks in Advance.. BufferedImage buffered_image= null ; public void createBuffredImage() { byte [] image = ( byte []) htResponseMessage.get( "IMAGE" ); //here it is getting byte buffer from hash map InputStream in = new ByteArrayInputStream(image); ...

AndrewThompson64 replied 1 month, 4 weeks ago
Rudra_Java wrote: Hi DarrylBurke , Thanks for ur suggestion.. Thanks is better shown by following the links provided, and carefully reading the information they contain, such as the link mentioned earlier in "To get better help sooner, post a SSCCE ..". I have posted the code . ..That code snippet is definitely NOT an SSCCE. Did you want the answer later, or less better, or...

Rudra_Java replied 1 month, 3 weeks ago
Hi, could you please send,how to solve the issue.. Thanks.

 

Top contributing authors

Name
Posts
Rudra_Java
3
user's latest post:
Reclaiming memory in buffered image
Published (2009-11-11 23:08:00)
Hi, could you please send,how to solve the issue.. Thanks.
AndrewThompson64
1
user's latest post:
Reclaiming memory in buffered image
Published (2009-11-11 00:19:00)
Rudra_Java wrote: Hi DarrylBurke , Thanks for ur suggestion.. Thanks is better shown by following the links provided, and carefully reading the information they contain, such as the link mentioned earlier in "To get better help sooner, post a SSCCE ..". I have posted the code . ..That code snippet is definitely NOT an SSCCE. Did you want the answer later, or less better, or both?
DarrylBurke
1
user's latest post:
Reclaiming memory in buffered image
Published (2009-11-10 21:58:00)
1. Make sure that you are not retaining any references to the images. 2. Try invoking flush() on each image when you are done with it. 3. "created a buffered image object" could have any of several different meanings. To get better help sooner, post a SSCCE that clearly demonstrates your problem. Use code tags to post codes -- [ code]CODE[ /code] will display as CODE Or click the CODE button and paste your code between the { code}...

Related threads on "Sun Forums":

Related threads on other sites:

Thread profile page for "Reclaiming memory in buffered image" on http://www.sun.com. This report page is a snippet summary view from a single thread "Reclaiming memory in buffered image", located on the Message Board at http://www.sun.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity