Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: JVM crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JVM crash



Jamison Hope wrote:

You should be fine. The JSheets example code does this. The native part uses performSelectorOnMainThread:… to do Cocoa GUI stuff on Thread 0, and then the "didEndSelector" callbacks (which are also run on Thread 0) attach to the JVM, do JNI to invoke a Java method, and then detach from the JVM. The Java methods use EventQueue#invokeLater (or SwingUtilities#invokeLater, same thing) to push execution back onto the EDT.


Thanks for the (re)pointer. I skimmed JSheets looking for this kind of thing, but I obviously missed it.

  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
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 © 2011 Apple Inc. All rights reserved.