Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Text ModifyLister.modifyText() is called when the text widget is already disposed(RAP 1.5M3 on windows)
Text ModifyLister.modifyText() is called when the text widget is already disposed [message #782335] Mon, 23 January 2012 15:02 Go to next message
Mikhail Nefedov is currently offline Mikhail NefedovFriend
Messages: 12
Registered: December 2011
Junior Member
-- A modal dialog shell has a Text widget
-- ModifyListener is attached to the Text widget,
-- the modifyText sometimes gets called when the text widget is already disposed.

I don't have a concrete procedure of reproduction, but I think by typing quickly into the text and pressing ESC (which disposes the shell) you will see the problem.

Please advise, on how to debug this issue.
Thank you.
Re: Text ModifyLister.modifyText() is called when the text widget is already disposed [message #782708 is a reply to message #782335] Tue, 24 January 2012 09:12 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

there are some rare cases where events are processed in the wrong order
on the server. This will be fixed when the new protocol is extended to
the requests (currently its only used for responses).

I'm not sure if this is the cause for your problem, but I think it's
likely. However, feel free to open a bug for it.

Until it's fixed, you can work around the issue by wrapping the code in
your modify listener in a if( !text.isDisposed() ) condition.

Regards, Ralf


--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Text ModifyLister.modifyText() is called when the text widget is already disposed [message #783018 is a reply to message #782708] Tue, 24 January 2012 22:49 Go to previous message
Mikhail Nefedov is currently offline Mikhail NefedovFriend
Messages: 12
Registered: December 2011
Junior Member
Thank you Ralf!
I guessed that processing order may be a problem.

I did do the check in the listener already. Thank you!
Previous Topic:labels are not updated
Next Topic:Rich Text Editor in RAP
Goto Forum:
  


Current Time: Thu Apr 25 09:52:35 GMT 2024

Powered by FUDForum. Page generated in 0.02759 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top