Skip to main content

java.lang.OutOfMemoryError while using .lnk file.

No replies
Joined: 2009-03-09


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

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(
at com.sun.lwuit.Image.createImage(
at com.sun.lwuit.EncodedImage.getInterval(
at com.sun.lwuit.EncodedImage.getWidth(
at com.sun.lwuit.CustomFont.(Compiled Method)(
at com.sun.lwuit.Font.createBitmapFont(
at com.sun.lwuit.Font.createBitmapFont(Compiled Method)(
at com.sun.lwuit.util.Resources.loadBitmapFont(Compiled Method)(
at com.sun.lwuit.util.Resources.loadFont(
at com.sun.lwuit.util.Resources.openFile(
at com.sun.lwuit.util.Resources.(
at java.lang.Thread.startup(

The error was thrown while executing the following line:

resource ="/res/xyz.res");

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

Thanking you,
S.A.Norton Stanley