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

Bug 305125

Summary: [Examples] Exception while terminating FileViewer
Product: [Eclipse Project] Platform Reporter: Praveen <pinnamur>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: lshanmug, skovatch
Version: 3.6Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard: stalebug

Description Praveen CLA 2010-03-09 05:24:42 EST
The below exception occurs when the FileViewer is terminated through Dock, or forcibly through the command Ctl+Q

Exception in thread "Thread-2" org.eclipse.swt.SWTException: Device is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4083)
	at org.eclipse.swt.SWT.error(SWT.java:3998)
	at org.eclipse.swt.SWT.error(SWT.java:3969)
	at org.eclipse.swt.widgets.Display.error(Display.java:1027)
	at org.eclipse.swt.widgets.Display.wake(Display.java:4350)
	at org.eclipse.swt.examples.fileviewer.FileViewer$1.run(FileViewer.java:1503)
	at java.lang.Thread.run(Thread.java:613)

Terminating normally works fine without any problem.
Comment 1 Scott Kovatch CLA 2010-06-07 13:58:43 EDT
This looks like a bug in the example. The worker thread is using the Display off the main thread.
Comment 2 Lakshmi P Shanmugam CLA 2017-07-03 07:46:22 EDT
Bug triaged, visit https://wiki.eclipse.org/SWT/Devel/Triage for more
information.
Comment 3 Eclipse Genie CLA 2019-12-27 12:56:54 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.