Create Dialog in seperate thread? [message #448701] |
Thu, 13 January 2005 11:02  |
Eclipse User |
|
|
|
Originally posted by: jen.jenjennyjen.com
Ok, my problem is as follows: I have created a wizard. As part of the
'PerformFinish' function, I have created a seperate thread to carry out
finish actions. Within this thread, I am trying to create a dialog, but
this is presenting problems in the form of an SWTException: 'Invalid
Thread Access'.
so I was just wondering if this is at all possible. I have read the
elipse.help article 'threading issues' and have found no solutions.
Thanks,
Jen
|
|
|
|
Re: Create Dialog in seperate thread? [message #448868 is a reply to message #448866] |
Fri, 14 January 2005 04:52  |
Eclipse User |
|
|
|
Originally posted by: jen.jenjenniejen.com
Cheers Stefan,
Works perfectly!
Stefan Pietsch wrote:
> Hi Jen,
> you can create widgets only in the main thread. I am using
> Display.getCurrent().asyncExec
> to solve it.
> Bye Stefan
> "Jen" <jen@jenjennyjen.com> schrieb im Newsbeitrag
> news:cs663g$7p3$1@www.eclipse.org...
>> Ok, my problem is as follows: I have created a wizard. As part of the
>> 'PerformFinish' function, I have created a seperate thread to carry out
>> finish actions. Within this thread, I am trying to create a dialog, but
>> this is presenting problems in the form of an SWTException: 'Invalid
>> Thread Access'.
>>
>> so I was just wondering if this is at all possible. I have read the
>> elipse.help article 'threading issues' and have found no solutions.
>>
>> Thanks,
>> Jen
>>
|
|
|
Powered by
FUDForum. Page generated in 0.14355 seconds