Article View: borland.public.jbuilder.java.swing
Article #8777Memory trouble
From: JPBallet
Date: Thu, 20 Jul 2000 00:00
Date: Thu, 20 Jul 2000 00:00
27 lines
1467 bytes
1467 bytes
Hello,
Who could explain to me what happen in my JBuilder3.0 application.
I have two JPanel :
the left one with 9 JButton.
the other to display animation or single image
6 JButton are used to display animations which consist:
Stop the thread if isAlive
load images in array of image and put them in a mediatracker
start a new thread which animate
3 JButton to display scaled map or rotated map with AfineTransform...
My questions are:
When i press succesively the 6 JButton the first time loading is slow, but
the second time and other it's instantaneous.
every time i press on a JButton the memory regulary growth.
When i push the 3 other JButton sometimes appear the following message:
java.lang.awt.OutOfMemory
at.java.awt.EventQueue.dispatchEvent(EventQueue.java:258)
at.java.EventDispatchThread.run(EventDispatch.Thread:68)
What happen and how can manage the regular memory growth/
System.gc() don't change anything ?.
can i flush() image after each utilization?
Thanks for all
Jean-Pierre Ballet
Technical Details
Message-ID:
<8l6ejv$dgs8@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,65df21ec95192606,start X-Google-Attributes: gid111d45,public From: "JPBallet" <jean-pierre.ballet@meteo.fr> Subject: Memory trouble Date: 2000/07/20 Message-ID: <8l6ejv$dgs8@bornews.borland.com> X-Deja-AN: 648538887 Organization: METEO-FRANCE X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.swing