File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Make it so: Java DB Connections & Transactions
this week in the
Java Micro Edition
Is this Memory Lekage?
Joined: Nov 30, 2000
Jul 16, 2004 00:05:00
img = Image.createImage("/a.png");
img = Image.createImage("/b.png");
img = Image.createImage("/c.png");
img = Image.createImage("/d.png");
is this memory lekage in j2me or java.Will it create memory fregmentation on heap.
Or i have to make first img = null and then asign new Image
Joined: Mar 07, 2002
Jul 16, 2004 01:23:00
No, it is not. When the img variable is assigned to the second Image instance, the first Image instance is no longer linked in the object graph and ready for garbage collection.
I agree. Here's the link:
subject: Is this Memory Lekage?
images in palm
Is there Memory leak..?
Re: Create Image in J2ME
Where do I put images in J2me application
Inserting a image with J2ME
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015