Project: SWT
Bug 41067 OLE ref count problem when opening file for read
Reported: 2003-08-01 19:02:26 | Status: resolved fixed

This chunk of code from OleClientSite constructors: OleFile oleFile = new OleFile(file, contentStream, OleFile.READ); IStorage storage = oleFile.getRootStorage(); storage.AddRef(); // Open a temporary storage object tempStorage = createTempStorage(); // Copy over contents of file int result = storage.CopyTo(0, null, null, tempStorage.getAddress()); storage.Release(); if (result != COM.S_OK) OLE.error(OLE.ERROR_CANNOT_OPEN_FILE, result); oleFile.dispose();

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFile.java