|Re: Disposing of resources [message #446739 is a reply to message #446703]
||Thu, 02 December 2004 03:32
| Mani Ghamari
Registered: July 2009
Your questions are aparently answered!
I don't know if you have any experience with this, yet, if you insist on
freeing all the resources before the jvm exit, you might want to take a look
at ShutdownHooks ( java.lang.Runtime.addShutdownHook(Thread hook) ).
"Max" <firstname.lastname@example.org> wrote in message
> Okay, this has probably been answered a 100 times before, but I would
> still like to know how to handle the following scenarios:
> I have a program running in the background with a gui part. I launch the
> gui part when necessary by creating a shell, some widgets and some
> images etc.
> When I dispose of the shell, but the program keeps running, do I need to
> dispose the images 'by hand' or is that taken care of automatically?
> What about the images if the shell is disposed by the background program
> (and thus the jvm) exiting -
> Regards Max rotvel AT bolignet-aarhus DOT dk
Powered by FUDForum
. Page generated in 0.02042 seconds