File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

destroy() method not called

 
Nesan Krish
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Korol Bloom
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic