Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] OleClientSite strange behavior

I have entered the following bug report:

http://dev.eclipse.org/bugs/show_bug.cgi?id=35493

Note that when I run your example below, everything is OK but if I add a 
call to doVerb(OLE.OLEIVERB_SHOW) after the shell is opened I get the hang 
case.






Садреев Айрат Алмазович <SadreevAA@xxxxxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
03/21/2003 12:13 AM
Please respond to platform-swt-dev

 
        To:     <platform-swt-dev@xxxxxxxxxxx>
        cc: 
        Subject:        [platform-swt-dev] OleClientSite strange behavior


There is a simple program

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.ole.win32.*;
import org.eclipse.swt.widgets.*;

public class OleTest {

   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);
       mainWnd.open();               while (!mainWnd.isDisposed()) {
           if (!disp.readAndDispatch()) {
               disp.sleep();
           }
       }           }
}

On some computers with Windows 2000 this works fine, on some with Windows 
2000 program hangs. Investigation showed that program hangs inside 
doVerb(OLE.OLEIVERB_SHOW) call. There are now obvious difference between 
computer configurations. Tha analogous program written in MFC works fine.

Any ideas?

Thanks in advance.

Airat.

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev




Back to the top