Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [Cocoa] RuntimeException in SWT listener hangs everything
[Cocoa] RuntimeException in SWT listener hangs everything [message #526618] |
Mon, 12 April 2010 12:51 |
Christophe Fondacci Messages: 95 Registered: July 2009 Location: Paris |
Member |
|
|
Hello,
I'm facing a strange problems with SWT for Cocoa.
Here it is :
I have a Tree component.
I add a listener to this tree with :
tree.addListener(SWT.MouseDoubleClick, this);
In my handleEvent method, it seems like whenever a RuntimeException is raised, my environment gets completely "locked".
When this happens, SWT "thread-0" has the stack shown at the end of this message. The same code running on SWT-win32 or on swt-gtk works without any problem.
For now, I need to try catch every implementation of handleEvent to make it robust against cocoa-swt.
Is it a normal behaviour, is it a known bug or may I open a new one ?
Thank you.
Christophe
http://www.nextep-softwares.com
Stack :
Daemon Thread [Thread-0] (Suspended)
OS.objc_msgSendSuper(objc_super, int, int) line: not available [native method]
Tree(Widget).callSuper(int, int, int) line: 202
Tree(Widget).mouseDown(int, int, int) line: 920
Tree(Control).mouseDown(int, int, int) line: 2160
Tree.mouseDown(int, int, int) line: 1914
Display.windowProc(int, int, int) line: 4653
OS.objc_msgSendSuper(objc_super, int, int) line: not available [native method]
Shell(Widget).callSuper(int, int, int) line: 202
Shell(Widget).windowSendEvent(int, int, int) line: 1753
Shell.windowSendEvent(int, int, int) line: 1825
Display.windowProc(int, int, int) line: 4713
OS.objc_msgSendSuper(objc_super, int, int) line: not available [native method]
Display.applicationSendEvent(int, int, int) line: 4285
Display.applicationProc(int, int, int) line: 4352
OS.objc_msgSend(int, int, int) line: not available [native method]
NSApplication.sendEvent(NSEvent) line: 101
Display.readAndDispatch() line: 3097
Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2405
Workbench.runUI() line: 2369
Workbench.access$4(Workbench) line: 2221
Workbench$5.run() line: 500
Realm.runWithDefault(Realm, Runnable) line: 332
Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 493
PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149
Application.start(IApplicationContext) line: 27
EclipseAppHandle.run(Object) line: 194
EclipseAppLauncher.runApplication(Object) line: 110
EclipseAppLauncher.start(Object) line: 79
EclipseStarter.run(Object) line: 368
EclipseStarter.run(String[], Runnable) line: 179
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
Main.invokeFramework(String[], URL[]) line: 559
Main.basicRun(String[]) line: 514
Main.run(String[]) line: 1311
Main.main(String[]) line: 1287
|
|
| | |
Goto Forum:
Current Time: Fri Apr 26 14:15:59 GMT 2024
Powered by FUDForum. Page generated in 0.02968 seconds
|