On Wednesday 08 December 2004 16:05, Archie Cobbs wrote: > By the way this is a real problem e.g. in an application where > you create a thread and then decide to start it later (or not) > based on some last minute information.
One of of Sun's own APIs contains most of the right ingredients: Runtime.addShutdownHook() takes an initialised, but unstarted, Thread as parameter. Its complement, Runtime.removeShutdoenHook() has memory leak written all over it. Cheers Chris -- Chris Gray /k/ Embedded Java Solutions Embedded & Mobile Java, OSGi http://www.kiffer.be/k/ [EMAIL PROTECTED] +32 3 216 0369 Visit us at�Embedded World 2005 <http://www.embedded-world.de/> 22--24 Feb. 2005 at the N�rnberg Messe (Germany), booth 10-133 _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/classpath

