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

Bug 332700

Summary: org.eclipse.swt.browser.IE.createSafeArray() does not work for cross process
Product: [Eclipse Project] Platform Reporter: Jun Yue Liu <liujuny>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe
Version: 3.6.1   
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jun Yue Liu CLA 2010-12-15 22:50:07 EST
Build Identifier: SWT 3.6.1

Due to a wrong flag in safeArrary was set, the safeArrary is not passed cross process successfully.

safeArray.fFeatures = OS.FADF_FIXEDSIZE | OS.FADF_HAVEVARTYPE

Actually the safeArray contain VT_UI1 but not VT_VARIANT, so the flag OS.FADF_HAVEVARTYPE should not be set up.

Without the flag, the function work well for in-process and out-of-process COM communication.

Reproducible: Always

Steps to Reproduce:
Run Snippet330 with SWT IE browser (in-process), and IBM XPD browser (support both in-process and out-of-process)
Comment 1 Grant Gayed CLA 2010-12-16 11:35:42 EST
Thanks!  Fixed > 20101216.