Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 184947

Summary: [OLE] SWT OLE causes MS Project to crash in 3.3 M6
Product: [Eclipse Project] Platform Reporter: Girish Betadpur <betadpur>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact: Felipe Heidrich <eclipse.felipe>
Severity: normal    
Priority: P3 CC: snorthov
Version: 3.3Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Girish Betadpur CLA 2007-05-01 14:31:18 EDT
Build ID: I20070323-1616

Steps To Reproduce:
The below piece of code works fine in Eclipse 3.2 (Version: 3.2.0, Build ID: M20060629-1905) but causes MS Project to crash in 3.3M6.

public static void main(String[] args) {
  final Display display = new Display();
  Shell shell = new Shell(display);
  shell.setSize(600, 400);
  shell.setLayout(new FillLayout());
  OleFrame oleFrame = new OleFrame(shell, SWT.NONE);
  OleClientSite oleCSite = new OleClientSite(oleFrame, SWT.NONE, "MSProject.Project");
  oleCSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
  shell.open();
  while (!shell.isDisposed()) {
    if (!display.readAndDispatch())
      display.sleep();
    }
  oleCSite.dispose();
  display.dispose();
}

The MS Projech crash window appears (i.e., the one which offers to send a report to MS) on shell.open() in the above code.

Loading a word document or excel sheet works fine (via ProgIDs "Word.Document" or "Excel.Sheet")


More information:
The MS Project version used for testing is "MS Project 2007"
Comment 1 Duong Nguyen CLA 2007-05-02 17:55:40 EDT
I don't have MS Project to try to reproduce the problem. However, can you try removing the line 

  oleCSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);

in your code and run it again to see if it works?

Comment 2 Girish Betadpur CLA 2007-05-06 06:58:30 EDT
(In reply to comment #1)
> I don't have MS Project to try to reproduce the problem. However, can you try
> removing the line 
> 
>   oleCSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
> 
> in your code and run it again to see if it works?
> 

Duong,
I still get the same crash even without the doVerb line.

BTW, there is a time-limited trial download of MS Project, if it helps.

-Girish
Comment 3 Felipe Heidrich CLA 2009-08-13 10:38:48 EDT
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.
Comment 4 Leo Ufimtsev CLA 2017-08-03 12:29:51 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate
Comment 5 Eclipse Genie CLA 2020-06-01 13:05:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.