Results 1 to 10 of 10

Thread: [RESOLVED] Forcing a class to "die" ?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    90

    [RESOLVED] Forcing a class to "die" ?

    Here's the problem - I have a plugin loading mechanism that dynamically loads classes like this:

    - Define a variable as the class
    - put the variable in an arraylist

    The problem now is that when I attempt to unload such a plugin using .remove() with the arraylist, the class instance is still there. I noticed this when one of the plugins (a basic HTTPd) was still listening on a port when it should have been unloaded.

    I've already tried using
    System.runFinalization();
    System.gc();

    Thanks for any help!
    Last edited by MalcolmCarmen; Jan 16th, 2006 at 03:00 PM.
    ^_^

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width