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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
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-2014