Skip to main content

java.lang.OutOfMemoryError while using .lnk file.

No replies
technolgia
Offline
Joined: 2009-03-09
Points: 0

Hello,

I am trying to run my Midlet application which uses LWUIT on HTC device using PhoneMe.
I first tried the PhoneMe Feature, when i run the application using the PhoneMe Manager i was able to browse to the .jad file location, install my application and get my application working. When i tried the same process using the .lnk file my application starts but hangs.

I then tried the process with phoneME Advanced Dual Stack - Foundation b162 (with MIDP support), on when i clicked on the .lnk file i got the following error on the console

java.lang.OutOfMemoryError:[
at javax.microedition.lcdui.ImageData.initImageData(unknown Source)
at javax.microedition.lcdui.ImageDataFactory.decodePNG(unknown Source)
at javax.microedition.lcdui.ImageDataFactory.decode(unknown Source)
at javax.microedition.lcdui.ImageDataFactory.createImmutableImageData(u0nknown Source)
at javax.microedition.lcdui.Image.createImage(Unknown Source)
at com.sun.lwuit.impl.midp.GameCanvasImplementation.createImage(GameCanvasImplementation.java)
at com.sun.lwuit.Image.createImage(Image.java:542)
at com.sun.lwuit.EncodedImage.getInterval(EncodedImage.java:101)
at com.sun.lwuit.EncodedImage.getWidth(EncodedImage.java:159)
at com.sun.lwuit.CustomFont.(Compiled Method)(CustomFont.java:101)
at com.sun.lwuit.Font.createBitmapFont(Font.java:250)
at com.sun.lwuit.Font.createBitmapFont(Compiled Method)(Font.java:231)
at com.sun.lwuit.util.Resources.loadBitmapFont(Compiled Method)(Resoiurces.java:783)
at com.sun.lwuit.util.Resources.loadFont(Resources.java:748)
at com.sun.lwuit.util.Resources.openFile(Resources.java:153)
at com.sun.lwuit.util.Resources.(Resources.java:114)
at com.sun.lwuit.util.Resources.open(Resources.java:449)
at com.mypackage.mobile.Midlet$2.run(Midlet.java:141)
at java.lang.Thread.run(Thread.java:715)
at java.lang.Thread.startup(Thread.java:785)
].

The error was thrown while executing the following line:

resource = Resources.open("/res/xyz.res");
.

What could be the possible problem? Can somebody please help me with this.

Thanking you,
Regards,
S.A.Norton Stanley