[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-swt-dev] Does SWT cocoa need -XstartOnFirstThread ?
|
I've just tried to get the application I work on to run with JDK1.6 and
the 64 bit Cocoa SWT library on MacOSX. However, when I ran it, the
GUI just hung in a horrible half running state.
It looked like previous problems I'd experienced with the Carbon
library, to do with the GUI event loop needing to run on Thread-0.
With the carbon library it was possible to specify -XstartOnFirstThread
to ensure that the GUI stuff was handled by thread 0, but with the
cocoa library that option doesn't seem to make any difference.
Can anyone give tell me what the right approach should be? Am I going
to have to refactor my application to make main method start the GUI
dispatch stuff before carrying on with other stuff on a different
thread, that would be a bit horrible given my application design.
--
Ben Staniford
Web:
http://www.staniford.netPhone: +44 (0) 151 638 0725
Mobile: +44 (0) 7891 842962