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

Bug 352622

Summary: crash on dispose of an OleClientSite Excel
Product: [Eclipse Project] Platform Reporter: andreas.nautsch
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: elvkoci
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
error report.log none

Description andreas.nautsch CLA 2011-07-20 12:11:34 EDT
Build Identifier: I20110613-1736

I'm developing an eclipse plugin which displays an Excel Worksheet in an Eclipse Editor.
It worked before 3-4 Weeks.
I did no Eclipse updates, just some Windows and JVM.
Now it's broken and there is a log-File created which says "A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005)" at swt-win32-3735.dll+0x2eb2b.
The Eclipse crash occurs after calling dispatch() of the OleClientSite Object.
I changed my Eclipse Version to the current one and updated my JVM.
Same problems.

Reproducible: Always

Steps to Reproduce:
1.create new Eclipse Plugin Project
2.create a view or editor with an OleFrame
3.OleControlSite controlSite = OleControlSite(OleFrame, SWT.NONE, "Excel.Sheet", input);
4.OleClientSite site = (OleClientSite) controlSite;
5.site.dispose();
Comment 1 andreas.nautsch CLA 2011-07-20 12:14:44 EDT
Created attachment 200023 [details]
error report.log

Eclipse recommended:

# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Comment 2 andreas.nautsch CLA 2011-07-22 07:42:46 EDT
i had several disposes of automations during my program, that was the mistake (sorry).
Comment 3 Elvis Koci CLA 2015-12-07 04:44:45 EST
(In reply to andreas.nautsch from comment #2)
> i had several disposes of automations during my program, that was the
> mistake (sorry).

Hi Andreas,

I facing the same issue. Could you elaborate a bit more on how to solve the problem? What do you mean with "several disposes" ? I thought it is necessary to dispose the automation once they are not relevant (used) anymore.