Re: COMObjReleaser

George Talusan <[email protected]> Wed, 9 Aug 2006 11:43:40 -0400
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
Hi Claude,

Actually I am calling COMPtr.close on all of my objects.  All of my code
looks similar to the following:

IPCDGetLoginLibs libs = null;

try
{
 libs = new IPCDGetLoginLibs("...");
 ...
}
catch (Exception e)
{
}
finally
{
 if (libs != null) { libs.close(); }
}

The above code is executed only once when a user logs into our application
server.

I am looking at a JProbe memory snapshot that indicates there's a hard
reference from COMObjReleaser through its various HashMaps and
ReferenceQueues to my class IPCDGetLoginLibs.

My class is extended from org.jawin.DispatchPtr.