Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

java.lang.OutOfMemoryError in JDK1.1b3

0 views
Skip to first unread message

Joshua Silver

unread,
Jan 30, 1997, 3:00:00 AM1/30/97
to

Has anyone dealt with memory allocation errors in Java?

I'm getting the following error when I attempt to run
my application in Win95:

java.lang.OutOfMemoryError
at sun.awt.image.Image.<init>(Image.java:73)
at sun.awt.windows.WImage.<init>(WImage.java:32)
at
sun.awt.windows.WOffScreenImage.<init>(WOffScreenImage.java:36)
at
sun.awt.windows.WComponentPeer.createImage(WComponentPeer.java:138)
at java.awt.Component.createImage(Component.java:1154)
at MyClass.update(MyClass.java:345)
...

The code that causes this error is a createImage(2500,1300).

I've got my Win95 settings set to 256 color (8 bits) so this image
should theoretically only require 2500X1300=3.2MB of space.

My machine has 32MB of memory.

This application works ok on Solaris (which has LOTS more memory).

Any help would be appreciated.

Josh Silver

0 new messages