[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[platform-swt-dev] memory leak while using OLE automation
- From: "Gupta, Saurabh [IT]" <saurabh.gupta@xxxxxxxxxxxxx>
- Date: Fri, 25 Oct 2002 09:36:26 -0400
- Delivered-to: firstname.lastname@example.org
I am using the OLE Automation classes in SWT to convert some of my Excel
files into Text delimitted files, and I am finding that there is a potential
memory leak problem. The JVM crashes after 60,000 iterations with the
org.eclipse.swt.SWTException: Failed to create Ole Client. result =
I have checked all the dispose() and garbage disposal mechanisms for
OleClientSite, OleAutomation, Shell and other classes.
Does anyone know if this is a known bug??
Is the standard way to dispose OleClientSite is to just call dispose() ??
Also, one interesting thing that I found in the SWT code was that there is a
protected method in OleClientSite named disposeCOMInterfaces() does all the
disposing related to ceratin member COMObject "iUnknown, iOleInPlaceSite".
I do not know if I should be calling disposeCOMInterfaces() as well , (but I
can't because it is protected)??
any help is appreciated.