Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Sleak : Invalid thread

here's the code...

DeviceData data1 = new DeviceData();
data1.tracking = true;
Display display = new Display(data1);
Sleak sleak = new Sleak();
sleak.open();
Shell shell = new Shell(display );
BarChart bar = new BarChart(shell, SWT.NONE);

running this give this Exception! can anybody help me?
org.eclipse.swt.SWTException: Invalid thread access

at org.eclipse.swt.SWT.error(SWT.java:2332)

at org.eclipse.swt.SWT.error(SWT.java:2262)

at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:467)

at org.eclipse.swt.widgets.Display.create(Display.java:528)

at org.eclipse.swt.graphics.Device.<init>(Device.java:95)

at org.eclipse.swt.widgets.Display.<init>(Display.java:291)

at fr.jlib.chart.BarChart.main(BarChart.java:322)


Back to the top