Community
Participate
Working Groups
During the Spring integration, Angelo has reported a problem of multiple threadings in XWT (Bug 320405). The following code raises an exception: org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:4083) public static void main(String[] args) { new Thread() { @Override public void run() { URL url = CLRFactoryNamespace.class .getResource(CLRFactoryNamespace.class.getSimpleName() + IConstants.XWT_EXTENSION_SUFFIX); try { XWT.open(url); } catch (Exception e) { e.printStackTrace(); } } }.start(); new Thread() { @Override public void run() { URL url = CLRFactoryNamespace.class .getResource(CLRFactoryNamespace.class.getSimpleName() + IConstants.XWT_EXTENSION_SUFFIX); try { XWT.open(url); } catch (Exception e) { e.printStackTrace(); } } }.start(); }
The modification is committed with a testcase -> 20100812