Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

destroy() method not called

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I close my applet stop()or destroy() methods are NOT called, why? Can this relate to browser/operating system gugrade. (I am using Internet Explorer 6.0 and Windows XP service pack 1. Thank you.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by "close your applet?" If you open a Frame in your applet, and then close the Frame, this won't cause stop() or destroy() to be called. But stop() should be called when you browse to another page from the one your applet is embedded in, and destroy() would be called if the browser decides to dispose the class loader that created your applet.
 
Nesan Krish
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
stop() or destroy() methods are not called when I close the browser (or surf some other web page) where the applet embeded in.
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had a problem once with a missed stop(), that was related to the use of the singleton pattern and synchronization. The browser's call of stop() caused a kind of deadlock blocking my applet.

, korol
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic