Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

application hangs when loading the AWT in native code



Hi everybody,

I have a Carbon application here that embedds a JVM. Everything works
fine until I want to start the AWT. As soon as I use JNI to call
Toolkit.getToolkit(), the application hangs and must be forced to
quit.

My guess is that - since I cannot control which thread calls the code
that does Toolkit.getToolkit() (my code is a plugin) - another thread
than the main thread calls my native code and thus
Toolkit.getToolkit() triggers loading the AWT and that blocks
everything.

What do you think, does this sound reasonable?

And, is there a Carbon alternative for Cocoas
"PerformSelectorOnMainThread" that I could use to solve my problem?


daniel. _______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.