How can a widget be disposed without a call to dispose()? [message #870858] |
Thu, 10 May 2012 01:59 |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
How is it possible for a widget to be disposed if its dispose() was never called? I'm seeing an odd bug in an RCP app that shows up as: org.eclipse.swt.SWTException: Widget is disposed
So I set a breakpoint in to find out how/why it was being disposed. To my surprise, the breakpoint was never hit for the widget in question.
Here's the top of the stack trace:
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4282)
at org.eclipse.swt.SWT.error(SWT.java:4197)
at org.eclipse.swt.SWT.error(SWT.java:4168)
at org.eclipse.swt.widgets.Widget.error(Widget.java:774)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:568)
at org.eclipse.swt.widgets.Widget.addDisposeListener(Widget.java:467)
at org.eclipse.jface.fieldassist.ControlDecoration.addControlListeners(ControlDecoration.java:602)
at org.eclipse.jface.fieldassist.ControlDecoration.<init>(ControlDecoration.java:476)
at org.eclipse.jface.fieldassist.ControlDecoration.<init>(ControlDecoration.java:428)
This is an RCP app built against a 3.7.2 target platform.
[Updated on: Thu, 10 May 2012 02:02] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02633 seconds