[Qt-jambi-interest] Problems with OS X

Eskil Abrahamsen Blomfeldt eblomfel at trolltech.com
Mon Mar 31 08:39:37 CEST 2008


Stephan Seufert wrote:
> Hi folks,
>
> Qtjambi keeps crashing on my OS X Leopard machine without a message,  
> just with exit value 1. At the start of the program the following  
> notice comes up:
>
> WARNING: QApplication was not created in the main() thread.
>   

When you launch your application, do you pass the -XstartOnFirstThread 
command line argument to the virtual machine (as mentioned in the thread 
from your link?)

This is necessary with Apple's virtual machine, as it will otherwise not 
start the application in the main thread of the process.

Example:

     > java -XstartOnFirstThread com.trolltech.launcher.Launcher

-- Eskil




More information about the Qt-jambi-interest mailing list