Hello Guest

Refresh/ Reload in browser crashes applet.

  • 4 Replies
  • 10161 Views
*

Offline swuth

  • *
  • 15
Refresh/ Reload in browser crashes applet.
« on: August 06, 2009, 19:50:49 »
Hi,

I have a game applet that is pretty much done, the remaining problem is the fact that if I hit reload/refresh. or navigate away from the applet and come back, the applet crashes. Is there a way to check for "refresh/reload, navigate away etc, so I can shut down the app properly and force it to reload when you go back?

Thanks

Re: Refresh/ Reload in browser crashes applet.
« Reply #1 on: August 06, 2009, 21:01:24 »
Just had this problem recently myself. I was kindly directed to the AppletGears demo in the source code package. Check out how they start/stop (using notify's). Do it that way, and it'll fix your problem.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

*

Offline swuth

  • *
  • 15
Re: Refresh/ Reload in browser crashes applet.
« Reply #2 on: August 06, 2009, 21:49:05 »
Awesome thanks,  where do I find that source code? :)

CH

Re: Refresh/ Reload in browser crashes applet.
« Reply #3 on: August 06, 2009, 23:11:49 »
Go to the LWJGL downloads and download the source package.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com