Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » EditorPart and Graphic disposed
EditorPart and Graphic disposed [message #448947] Sun, 16 January 2005 01:43
Eclipse UserFriend
Originally posted by: al_rody.hotmail.com

Hi,

I posted this question in both SWT and Platform threads, since i m not
sure which one it should be.

I have an interesting problem about opening more than one editorPart, then
close one of it. I got an error said Graphic is disposed! which cause my
eclipse hang, i have to kill the process and restart it.

extra info about my plugin: - osx 10.3.7, eclipse 3.1x, using GEF
(GraphicalEditorWithFlyoutPalette), mutilthread UI by using
Dispose.asyncExec().

regrads,
rody

Here is an stack dump from eclipse error log:

org.eclipse.swt.SWTException: Graphic is disposed
at org.eclipse.swt.SWT.error(SWT.java:2697)
at org.eclipse.swt.SWT.error(SWT.java:2622)
at org.eclipse.swt.SWT.error(SWT.java:2593)
at org.eclipse.swt.graphics.Image.getBounds(Image.java:562)
at org.eclipse.swt.custom.CTabItem.drawSelected(CTabItem.java:3 58)
at org.eclipse.swt.custom.CTabItem.onPaint(CTabItem.java:589)
at org.eclipse.swt.custom.CTabFolder.drawTabArea(CTabFolder.jav a:1091)
at org.eclipse.swt.custom.CTabFolder.onPaint(CTabFolder.java:21 85)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.j ava:292)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1229)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1253)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1238)
at org.eclipse.swt.widgets.Control.drawWidget(Control.java:546)
at org.eclipse.swt.widgets.Widget.kEventControlDraw(Widget.java :867)
at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:314)
at org.eclipse.swt.widgets.Display.controlProc(Display.java:718 )
at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Nati ve Method)
at org.eclipse.swt.widgets.Shell.kEventWindowDrawContent(Shell. java:884)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1725)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3522 )
at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Nati ve Method)
at org.eclipse.swt.widgets.Shell.kEventWindowUpdate(Shell.java: 995)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1731)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3522 )
at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Na tive
Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2536)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1529)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1500)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:276)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:102)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Previous Topic:TableViewer and ProgressBar
Next Topic:Newbie using Views
Goto Forum:
  


Current Time: Sun Dec 15 02:10:28 GMT 2019

Powered by FUDForum. Page generated in 0.01755 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top