 |
Author |
Topic: properly terminating a BApplet? (Read 426 times) |
|
trip


|
properly terminating a BApplet?
« on: Oct 25th, 2004, 5:39pm » |
|
Hello again, I am working with a java app that calls up a JFrame in which there is a BApplet. basically, the main app is a sort of a control panel, setting such things in the BApplet as resolution, size and other variables. the idea is that when you press the esc key, the BApplet quits but the control panel is still running, ready to change the parameters and launch the BApplet again when you press a button on the panel's window. It all works great, but after a few tries I get a java out of memory error. How quick I get the error depends on the screen size I choose for the BApplet (1024x768 never runs twice, but 320x240 can run a few times) This is the way it is setup: control panel JFrame calls: holder JFrame, which calls: BApplet my hunch is that i am not properly closing the BApplet or the frame that it is in. how do you properly terminate the BApplet? BApplet.destroy()? many thanks c.
|
|
|
|
|