Bug 35493 - OleClientSite hang
Summary: OleClientSite hang
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows All
: P2 normal (vote)
Target Milestone: 2.1.1   Edit
Assignee: Veronika Irvine CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-21 12:18 EST by Veronika Irvine CLA
Modified: 2003-06-04 17:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Veronika Irvine CLA 2003-03-21 12:18:57 EST
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();
           }
        }
}
Comment 1 Veronika Irvine CLA 2003-05-08 08:30:31 EDT
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
Comment 2 Veronika Irvine CLA 2003-05-08 08:32:11 EDT
Please ignore the previous comment - I pasted it in the wrong bug report.
Comment 3 Veronika Irvine CLA 2003-06-03 17:53:28 EDT
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.
Comment 4 Jeff McAffer CLA 2003-06-04 17:22:19 EDT
Assessed as a bad problem by SWT and relatively low risk fix.  Approved for 
2.1.1.
Comment 5 Veronika Irvine CLA 2003-06-04 17:28:02 EDT
Backed out the IOleDocumentSite interface support.