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.
rocket mass heater
subject: Is this Memory Lekage?
Is there Memory leak..?
Re: Create Image in J2ME
Inserting a image with J2ME
images in palm
Where do I put images in J2me application
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014