Mirage Source

Free ORPG making software.
It is currently Fri Apr 26, 2024 4:42 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Aug 24, 2009 4:15 pm 
Offline
Pro
User avatar

Joined: Sun Aug 05, 2007 2:26 pm
Posts: 547
I need to run some code (unload stuff etc) when the program ends. It is a program not an applet. Anybody know the method to use?

_________________
GIAKEN wrote:
I think what I see is this happening:

Labmonkey gets mod, everybody loves him, people find out his code sucks, he gets demoted, then banned, then he makes an engine called Chaos Engine.


Top
 Profile  
 
PostPosted: Mon Aug 24, 2009 6:19 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
Ends how? If someone kills the VM you are fucked. How will the application be ending?


Top
 Profile  
 
PostPosted: Mon Aug 24, 2009 6:41 pm 
Offline
Pro
User avatar

Joined: Sun Aug 05, 2007 2:26 pm
Posts: 547
Well I worked around this, but i was thinking like when I press stop in the ide. But yea, I just tweaked my code so i am not using all of the files etc at all times, and so i can unload them when I'm done using them, instead of when the program closes. Seems like a good thing to know though.

_________________
GIAKEN wrote:
I think what I see is this happening:

Labmonkey gets mod, everybody loves him, people find out his code sucks, he gets demoted, then banned, then he makes an engine called Chaos Engine.


Top
 Profile  
 
PostPosted: Mon Aug 24, 2009 6:51 pm 
Offline
Pro

Joined: Mon May 29, 2006 2:58 pm
Posts: 370
http://java.sun.com/docs/books/tutorial ... tDemo.java

an example of how to setup and use WindowListener. I just started playign with it yesterday myself.

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group