on 05-12-2011 12:02 PM
Hi
We are developing an application running on MI using eSWT. It runs on a device which has a scanner.
The event from the scanner gets processed in a different thread from the UI thread. When I update an attribute with the scanned barcode, the binding gets triggered to update the UI and because it happens in a different thread I get the following exception:
org.eclipse.swt.SWTException: Invalid thread access
The only advice I found was to use Display.getDefault().syncExec or asyncExec, but the eSWT classes are not accessable by default.
Is there any way using the API to an MI Handheld application to accomplish it.
thanks
Andrew
The class
com.sap.tc.mobile.wdlite.progmodel.core.WDLite
has methods syncExec and asyncExec which can be used to update the UI from a different thread.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.