Applet java qui refuse de se fermer
J'utilise un applet qui malheuresement refuse de se fermer en raison des threads (paint) qui tournent toujours.
j'ai lancé les methode suivante depuis javascript :
document.NomApplet.stop() puis document.NomApplet.destroy()
les methodes sont accèptèes mais l'écran se fige et j'obtiens le rapport suivant dans le fichier javalog.txt :
----------------------------------------------------------------------------
java.lang.NullPointerException
at SimManager.paint
at com/ms/awt/WComponentPeer.doClearAndPaint
at com/ms/awt/WComponentPeer.paintNode
at com/ms/ui/windowmanager/PaintRequest.run
at com/ms/ui/windowmanager/RunnableMessage.run
at com/ms/awt/WSystemQueue.getMessage
at com/ms/awt/WEventQueue.getNextEvent
at java/awt/EventDispatchThread.run
java.lang.NullPointerException
at SimManager.paint
at com/ms/awt/WComponentPeer.doClearAndPaint
at com/ms/awt/WComponentPeer.paintNode
at com/ms/ui/windowmanager/PaintRequest.run
at com/ms/ui/windowmanager/RunnableMessage.run
at com/ms/awt/WSystemQueue.getMessage
at com/ms/awt/WEventQueue.getNextEvent
at java/awt/EventDispatchThread.run
---------------------------------------------------------------------------
L'objet (paint) ou (graphic) continue de dessiner, le thread tourne toujours.
Comment tuer ces thread ?
Peut on le faire depuis javascript ?
Autrement que dois je faire ?
Merci de m'aider et pardonez moi mes lacunes en java
Christ alain
j'ai lancé les methode suivante depuis javascript :
document.NomApplet.stop() puis document.NomApplet.destroy()
les methodes sont accèptèes mais l'écran se fige et j'obtiens le rapport suivant dans le fichier javalog.txt :
----------------------------------------------------------------------------
java.lang.NullPointerException
at SimManager.paint
at com/ms/awt/WComponentPeer.doClearAndPaint
at com/ms/awt/WComponentPeer.paintNode
at com/ms/ui/windowmanager/PaintRequest.run
at com/ms/ui/windowmanager/RunnableMessage.run
at com/ms/awt/WSystemQueue.getMessage
at com/ms/awt/WEventQueue.getNextEvent
at java/awt/EventDispatchThread.run
java.lang.NullPointerException
at SimManager.paint
at com/ms/awt/WComponentPeer.doClearAndPaint
at com/ms/awt/WComponentPeer.paintNode
at com/ms/ui/windowmanager/PaintRequest.run
at com/ms/ui/windowmanager/RunnableMessage.run
at com/ms/awt/WSystemQueue.getMessage
at com/ms/awt/WEventQueue.getNextEvent
at java/awt/EventDispatchThread.run
---------------------------------------------------------------------------
L'objet (paint) ou (graphic) continue de dessiner, le thread tourne toujours.
Comment tuer ces thread ?
Peut on le faire depuis javascript ?
Autrement que dois je faire ?
Merci de m'aider et pardonez moi mes lacunes en java
Christ alain