• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Java MIDISetup.getNumberOfSources hangs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?"
__________________________________________________________________________


References: 
 >Re: Java MIDISetup.getNumberOfSources hangs (From: Doug Wyatt <email@hidden>)

  • Prev by Date: kMIDIPropertyName from CFM?
  • Next by Date: Re: only on cocoa?
  • Previous by thread: Re: Java MIDISetup.getNumberOfSources hangs
  • Next by thread: Non-symmetric Audio Units
  • Index(es):
    • Date
    • Thread