πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8782

Re: Memory trouble

#8782
From: Velu Erwan
Date: Thu, 20 Jul 2000 00:00
37 lines
2102 bytes
JPBallet <jean-pierre.ballet@meteo.fr> a οΏ½crit dans le message :
8l6ejv$dgs8@bornews.borland.com...
> 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.
post your code, it must be easier for all to see your pb.

> 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)
i think that you are creating a new image each time that your rotating your
image.
Be carefull with threads, i've got problem with them because you have many
and many
reference on objects. i could be a problem.

> 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
Sorry for the quality of my english, but u can speak in French with me.
Erwan
Technical Details
Message-ID: <8l77ib$md63@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8l6ejv$dgs8@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,65df21ec95192606
X-Google-Attributes: gid111d45,public
From: "Velu Erwan" <erwan@mandrakesoft.com>
Subject: Re: Memory trouble
Date: 2000/07/20
Message-ID: <8l77ib$md63@bornews.borland.com>
X-Deja-AN: 648658521
References: <8l6ejv$dgs8@bornews.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: Mandrakesoft
X-MSMail-Priority: Normal
Reply-To: "Velu Erwan" <erwan@mandrakesoft.com>
Newsgroups: borland.public.jbuilder.java.swing