Summary: | [Widgets] Exception when disposing the Display in a Dispose listener of a Shell | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Jussi Suistomaa <jussi.suistomaa> |
Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | ericwill, pinnamur, Silenio_Quarti |
Version: | 3.5.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Whiteboard: |
Description
Jussi Suistomaa
2009-11-14 13:16:42 EST
Display.release() is doing the proper thing in releasing the shells. Your example below calls dispose twice which is not correct. Do you have a particular use case in mind that requires this form? (In reply to comment #1) > Display.release() is doing the proper thing in releasing the shells. Your > example below calls dispose twice which is not correct. Do you have a > particular use case in mind that requires this form? Just noticed it doesn't handle this situation and could be easily improved to do so. That's why I reported it. Calling dispose() twice for a Device is ok. Calling it on a disposed Device is ignored silently. |