🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Memory trouble

#8698
From: JPBallet
Date: Fri, 21 Jul 2000 00:00
57 lines
2824 bytes
Bonjour Erwan.
Puisque vous me le sugg�rez je vais �crire en fran�ais ou je suis vraiment
plus � l'aise.
En fait mon erreur est reproductible � volont�.
Si je clique sur 6 boutons les uns apres les autres les animations d�marrent
et s'arr�tent correctement. Une fois que j'ai mis en route toutes ces
animations les unes apres les autres, si j'appuie sur un jbouton qui affiche
une simple carte, j'ai le message d'erreur affich�
dans ce mail.
Je cr�e effectivement une image mais je ne la rotate pas je la scale si
j'ose dire.
J'ai l'impression que tout se passe au niveau de la souris
l'enqu^te pietine
amiti�s
JP Ballet

Velu Erwan a �crit dans le message <8l77ib$md63@bornews.borland.com>...
>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: <8l8voi$8qk3@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8l6ejv$dgs8@bornews.borland.com> <8l77ib$md63@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 111d45,65df21ec95192606
X-Google-Attributes: gid111d45,public
From: "JPBallet" <jean-pierre.ballet@meteo.fr>
Subject: Re: Memory trouble
Date: 2000/07/21
Message-ID: <8l8voi$8qk3@bornews.borland.com>
X-Deja-AN: 648993931
References: <8l6ejv$dgs8@bornews.borland.com> <8l77ib$md63@bornews.borland.com>
Organization: METEO-FRANCE
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing