Community
Participate
Working Groups
I20030317 Calling SHOW on Word after shell is open causes a hang. public static void main(String[] args) { Display disp = new Display(); Shell mainWnd = new Shell(disp); mainWnd.setText("OleTest"); mainWnd.setLayout(new FillLayout()); OleFrame frame = new OleFrame(mainWnd, SWT.BORDER); String progID = "Word.Document"; OleClientSite fSite = new OleClientSite(frame, SWT.NONE, progID); // fSite.doVerb(OLE.OLEIVERB_SHOW); // call doVerb before shell is open and OK mainWnd.open(); fSite.doVerb(OLE.OLEIVERB_SHOW); //call doVerb after shell is open and GP while (!mainWnd.isDisposed()) { if (!disp.readAndDispatch()) { disp.sleep(); } } }
Veronika, the attached mail seems to come from you, therefore I reply to you. I did the steps you described below. The problems I've had with Eclipse 2.0.0 seem to be fixed with the swt update - so I'm partly happy! Partly because the fix did not solve my WSAD 5 (Eclipse 2.0.2) problem... My WSAD5 has no plugins/org.eclipse.swt.win32_2.0.0 directory, only a plugins/org.eclipse.swt.win32_2.0.2 directory exists, because it's Eclipse 2.0.2... I copied the 2 files into the plugins/org.eclipse.swt.win32_2.0.2 /ws/win32 and plugins/org.eclipse.swt.win32_2.0.2/os/win32/x86 directories and restarted both my machine and WSAD. No effect, the memory problem still occurs. Is there another fix for 2.0.2? Thanks in advance! Regards Matthias Schneider
Please ignore the previous comment - I pasted it in the wrong bug report.
IOleDucomentSite does provide the scrollbars for Word but it is causing Word and other ole documents to fail in other places. Many Ole documents just won't open and others freeze after a while.
Assessed as a bad problem by SWT and relatively low risk fix. Approved for 2.1.1.
Backed out the IOleDocumentSite interface support.