A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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?
Inserting a image with J2ME
Re: Create Image in J2ME
Is there Memory leak..?
Where do I put images in J2me application
images in palm
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014