Re: Here's a fun potential CoreMIDI bug
Re: Here's a fun potential CoreMIDI bug
- Subject: Re: Here's a fun potential CoreMIDI bug
- From: Doug Wyatt <email@hidden>
- Date: Tue, 19 Feb 2002 09:27:42 -0800
Pete, would you please write this up as a bug anyhow? Are you on a
dual-processor machine?
Off the top of my head, without going back to the source to make sure
I'm handling this condition correctly, there could be a window of time
during which the MIDIServer is in the process of shutting down where, if
a new client starts communicating with it, the server -- instead of
being in its normal, functional state -- will be in a partially
torn-down state.
Doug
On Monday, February 18, 2002, at 09:48 , Pete Yandell wrote:
OK, now it's stopped doing it! Hmmm...puzzling.
A bit more info:
Previously when I ran this app, the light on my UM-1 would go on and
stay on after the app had quit. Running the app again would cause a 2
second pause and the light would sometimes go off and come back on
again.
Now that everything is working, the app runs instantly and the UM-1
light flicks on for a moment and then off again as soon as the app
exits.
*scratches head*
Oh well.
On Tuesday, February 19, 2002, at 03:20 PM, Pete Yandell wrote:
I have an extremely complex MIDI application:
#include <stdio.h>
#include <CoreMIDI/CoreMIDI.h>
int main (int argc, const char* argv[])
{
printf ("%d\n", (int)MIDIGetNumberOfSources());
return 0;
}
and here is what happens when I run it a dozen times in a row:
% ./MIDIBug
0
% ./MIDIBug
1
% ./MIDIBug
0
% ./MIDIBug
1
% ./MIDIBug
0
% ./MIDIBug
1
% ./MIDIBug
0
% ./MIDIBug
0
% ./MIDIBug
0
% ./MIDIBug
1
% ./MIDIBug
0
Now can anybody explain to me why I don't always get a result of 1,
given I have one source available at all times?
I'm running a Roland UM-1 with Roland's drivers. I'll do some more
testing and follow up if I find anything more.
Pete Yandell
http://pete.yandell.com/
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.
--
Doug Wyatt
work: email@hidden (CoreAudio)
personal: email@hidden
http://www.sonosphere.com
"There is no way to peace. Peace is the way."
-- A.J. Muste
_______________________________________________
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.