Occasional Invalid Thread Access [message #1743438] |
Thu, 15 September 2016 09:09  |
Eclipse User |
|
|
|
Hi al,,
We're developing a small standalone RAP application.
We often encountered Invalid Thread Access that severely degrades our user experience. The error is still happening eventhough we wrap the ui updates to Display#sync/async like below:
Display.getDefault().syncExec
(
new Runnable()
{
@Override
public void run()
{
String message = "No record available";
if (pagination != null)
{
if (pagination.getTotalRecordCount() > 0)
message = MessageFormat.format("Page {0} of {1}", new Object[] { Integer.valueOf(pagination.getCurrentPage()), Integer.valueOf(pagination.getTotalPageCount()) });
}
AbstractTabularForm.this.lblPageNumber.setText(message);
}
}
);
The error seems to be spreaded all over in our code, but above part is the most often.
Is there any other way we should do to prevent this error ?
Any help would be greatly appreciated.
Thanks & Regards,
Setya
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07015 seconds