Skip to main content

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

To use the Sleak tool, please follow the instructions here:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/dev.html#tools





"Issam Mouslim" <imouslim@xxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
09/26/2003 07:58 AM
Please respond to platform-swt-dev
 
        To:     <platform-swt-dev@xxxxxxxxxxx>
        cc: 
        Subject:        [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