|
|
|
|
|
|
Re: Refreshing RWT standalone throws exception [message #911766 is a reply to message #910524] |
Wed, 12 September 2012 09:22 |
|
Chris,
You should not call Display#dispose() in a dispose listener (actually,
you should not call this method at all in RAP). Here's what happens:
- Browser refresh leads to a disposal of the display
- In Display#dispose(), all Shells are disposed of
- Your dispose listener is notified which calls display dispose
-> Display#dispose() is called during Display#dispose() ⚡
The same code leads to a "widget is disposed" exception in SWT. When you
add a button to your snippet that disposes of the display, you'll see
this exception. I've opened a bug [1] to throw the appropriate SWT
exception in RAP as well.
What is the display.dispose() call supposed to achieve in your application?
Regards,
Ralf
[1] 389384: Calling Display#dispose() during disposal of the display
should throw SWT exception
https://bugs.eclipse.org/bugs/show_bug.cgi?id=389384
--
Ralf Sternberg
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04694 seconds