🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1213

out of memory\image error please help

#1213
From: TJW
Date: Wed, 07 Apr 1999 00:00
31 lines
1698 bytes
please please please I need some urgent help

I am writing a lift simulation program that involves a lot of animation

at run time when the program has been running for a while I get the
following error :-

Exception occurred during event dispatching:
java.lang.OutOfMemoryError
        at sun.awt.image.Image.<init>(Compiled Code)
        at sun.awt.windows.WImage.<init>(Compiled Code)
        at sun.awt.windows.WOffScreenImage.<init>(Compiled Code)
        at sun.awt.windows.WComponentPeer.createImage(Compiled Code)
        at java.awt.Component.createImage(Compiled Code)
        at elevator.update(Compiled Code)
        at sun.awt.windows.WComponentPeer.handleEvent(Compiled Code)
        at java.awt.Component.dispatchEventImpl(Compiled Code)
        at java.awt.Component.dispatchEvent(Compiled Code)
        at java.awt.EventDispatchThread.run(Compiled Code)

how can I over come this

is this because I am using the same image multiple times?

will a media Traker solve this

I would appreciate any ideas any body has

Thanks in advance

Tim Welford
Technical Details
Message-ID: <7ee4b6$4ca$1@news4.svr.pol.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,5d949cec00fead28,start
X-Google-Attributes: gid10d6db,public
From: "TJW" <tim@welfords.freeserve.co.uk>
Subject: out of memory\image error please help
Date: 1999/04/07
Message-ID: <7ee4b6$4ca$1@news4.svr.pol.co.uk>
X-Deja-AN: 463416216
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@theplanet.net
X-Trace: news4.svr.pol.co.uk 923440294 4490 62.136.15.169 (6 Apr 1999 23:11:34 GMT)
Organization: Customer of Planet Online
NNTP-Posting-Date: 6 Apr 1999 23:11:34 GMT
Newsgroups: aus.computers.java