Re: Java MIDISetup.getNumberOfSources hangs
Re: Java MIDISetup.getNumberOfSources hangs
- Subject: Re: Java MIDISetup.getNumberOfSources hangs
- From: Bill Stewart <email@hidden>
- Date: Fri, 10 Aug 2001 14:29:11 -0700
This has been fixed, however the only way to work around this on 10.0 is to
launch your app from the terminal AND call into the MIDI APIs before you
make ANY call to java.awt (Its a problem in the Java VM initialization
order)
Bill
on 10/8/01 1:59 AM, Doug Wyatt wrote:
>
On Thursday, August 9, 2001, at 07:59 PM, Scott Ruda wrote:
>
> I am trying to use the Java interface to the OS X MIDI services and
>
> using the MIDIGraph application as a template. When I call
>
> MIDISetup.getNumberOfSources the application hangs. I have tried
>
> stepping into the call and it gets way down in internal code and I
>
> can't figure out exactly what is hanging. Any ideas?
>
>
I suspect this is the first MIDI call you're making?
>
>
The CoreMIDI framework implements the API on the client app side by
>
launching a MIDIServer process and using Mach IPC to communicate with
>
it. There have been some interesting issues with Java and the
>
CoreFoundation classes which CoreMIDI uses for Mach messaging.
>
>
Bill Stewart may have some more specific suggestions, but I believe the
>
trick is to find a way to make your first MIDI call from Java's main
>
thread.
>
>
Doug
>
>
--
>
Doug Wyatt
>
work: email@hidden (CoreAudio)
>
personal: email@hidden http://www.sonosphere.com
>
>
"Premature optimization is the root of all evil."
>
-- Knuth
>
_______________________________________________
>
coreaudio-api mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
Cat: "Leave me alone, I'm trying to nap... Ah, What's that clicking noise?"
__________________________________________________________________________