Re: MIDIObjectGetProperties returning err -50 on virtual MIDI port
Re: MIDIObjectGetProperties returning err -50 on virtual MIDI port
- Subject: Re: MIDIObjectGetProperties returning err -50 on virtual MIDI port
- From: Michael Tyson <email@hidden>
- Date: Wed, 09 Nov 2011 00:26:44 +0100
Ahh, lovely, thanks heaps, Doug! That'd be it!
On 8 Nov 2011, at 23:59, Doug Wyatt wrote:
> As horribly pernicious as error -50 is, it almost always means that a function argument is null and shouldn't be null, or, in the case of API's that use object identifiers (not to be confused with Objective C id's) instead of pointers (MIDIObjectRef is such a type), the ID doesn't point to a valid object.
>
> In this case, entity is probably NULL. Virtual endpoints don't have entities.
>
> You want the endpoint's name? Just ask for kMIDIPropertyDisplayName on the endpoint.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden