J2ME: OutOfMemoryError

T

Timo Nentwig

Hi!

I tried to allocate new int[getWidth() * getHeight()] and got an
OutOfMemoryError. Well, it's not that much memory, is it? :) Is this some
ktoolbar configuration issue or something?

Running with storage root DefaultColorPhone
Warning: Failed to initialize WMA message routing support
Error: Can't remove a lock
file: /usr/local/java/WTK-2.2/wtklib/comcon-server.port.lock
Warning: Failed to initialize Bluetooth (JSR 82) support
java.lang.OutOfMemoryError
Execution completed.
721801 bytecodes executed
10 thread switches
744 classes in the system (including system classes)
3993 dynamic objects allocated (392832 bytes)
5 garbage collections (101656 bytes collected)
Warning: The attempt to finalize unexisting client.
java.lang.NullPointerException
at com.sun.kvem.midp.MIDP.run(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.runEmulatorSameVM(Unknown
Source)
at com.sun.kvem.environment.EmulatorInvoker.runEmulator(Unknown Source)
at
com.sun.kvem.environment.ProfileEnvironment$KVMThread.runEmulator(Unknown
Source)
at com.sun.kvem.environment.ProfileEnvironment$KVMThread.run(Unknown
Source)
Settings updated
Project settings saved
 
D

Darryl Pierce

Timo said:
I tried to allocate new int[getWidth() * getHeight()] and got an
OutOfMemoryError. Well, it's not that much memory, is it? :) Is this some
ktoolbar configuration issue or something?

Show the code, please. Oh, and where do you see an OutOfMemoryError? I
see a NullPointerException...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top