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