Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352622 - crash on dispose of an OleClientSite Excel
Summary: crash on dispose of an OleClientSite Excel
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 12:11 EDT by andreas.nautsch CLA
Modified: 2015-12-07 04:44 EST (History)
1 user (show)

See Also:


Attachments
error report.log (27.06 KB, text/plain)
2011-07-20 12:14 EDT, andreas.nautsch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.