-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RichText: SWTException when calling setText() multiple times consecutively #458
Comments
Will you provide a patch? Any idea how to solve that case? As far as I understood, there is no real sync mechanism on calling a BrowserFunction. That means, from the Java perspective the call to a BrowserFunction is triggered, and there is no way to sync the browser call with the Java processing, e.g. to wait that another call is triggered until the previous call is finished. At least I am not aware of such a synchronization. Any ideas or hints welcome. |
TBH, I hoped someone else had an idea about this 😂 This could also just be a problem on Windows/IE and be an SWT issue. At least, I cannot reproduce it on Linux/WebKit2, but then I also suffer from #434 atm. |
Unfortunately I have no idea on this. I think I had this issue when I created the example and that is why the ModifyListener is not directly updating the RichTextEditor. Every idea I had on this did not work (queuing, synchronizing, delay, ...) Not sure what to do here. If nobody else has an idea on this, I tend to close as WONTFIX. But we can also keep it open if someone comes up with an idea. |
The only possible improvement I see is wrapping That way, other people wouldn't need to spend time debugging this. |
try / catch added, thank you |
…ception_when_calling_setText_multiple_times_consecutively Bug #458 - SWTException when calling setText() multiple times
I've modified the rich text editor sample to call
setText()
twice (when pressing the "Set Text" button). This causes a crash:Here's the change, but to try it, comment out the added
getText()
which leads to a crash on startup (#457).GEBIT@092e69d
The text was updated successfully, but these errors were encountered: