Re: Restarting MIDI
Re: Restarting MIDI
- Subject: Re: Restarting MIDI
- From: Denis Queffeulou <email@hidden>
- Date: Wed, 23 Jul 2003 09:27:31 +0200
I look at the process viewer after the MIDI port dispose and it shows
that MIDIServer becomes "zombie". After that, the same application
can't restart it. The MIDIServer exits when the application exits.
I think MIDIServer becomes zombie when I disconnect the MIDI input port.
If I remember correctly, you said you were also disposing of your
MIDIClient, and creating a new one. Is this correct?
Normally, if you're the only one using CoreMIDI, I would expect the
MIDIServer to exit when you dispose of your MIDIClient. It should exit
cleanly, and not become a zombie -- it's unclear why that is happening.
And my next guess is that the presence of the zombie is somehow
interfering with starting another MIDIServer when you create a new
MIDIClient.
In any case, most apps create one MIDIClient when their program starts,
and use it until the program terminates. You might try doing that.
I tried it, I keep the MIDIClient and just disconnect the input port => MIDIServer becomes zombie.
Is there some example that do the same (other than those in SDK) ?
I've started my app from the MIDIEcho example but it don't dispose anything.
--
Denis
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.