[e-lang] Found the SWT/OS X/Leopard problem
Kevin Reid
kpreid at mac.com
Mon Nov 10 06:13:26 CST 2008
(For those that don't know, E+SWT+Mac OS X stopped working even as
well as it had with the introduction of Mac OS X 10.5 Leopard.)
I have found a solution to the problem.
If the main thread, that is the one which public static void
main(String[] args) is executed in, does not exit, then SWT
applications work.
This is not too surprising considering that SWT also requires -
XstartOnMainThread - which JVM option makes the JVM execute main() on
the thread that is initially created by the OS.
I suspect, even though keeping that thread around is *sufficient*,
that the *correct* solution is to use that special thread as the
SWTRunner's thread.
I will attempt to modify the SWTRunner to implement this when I have
time.
--
Kevin Reid <http://homepage.mac.com/kpreid/>
More information about the e-lang
mailing list