> From: CrystalCracker [mailto:sudarshan.acha...@gmail.com]
> Subject: Re: Understanding GC Logs
> 
> Shouldn't the 'port' object get collected once ?

Don't confuse a reference to an object with the object itself.  The port 
variable may go out of scope, but that has nothing to do with the underlying 
object, which will persist as long as anything has a reference to it.

You'll need to use a heap profiler to find out who is hanging on to references 
to your objects.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

Reply via email to