Thanks so much, Dan, for your reply.
InitCoreMidiDriver is only called once near the beginning of the program. I
am pretty sure that it is crashing before MIDIClientCreate is called, but
according to the CoreMIDI docs, no CoreMIDI call is ever supposed to release
a string that you pass to it. In addition, the Apple-supplied sample code
shows passing in that parameter in exactly the same way. Finally, I never
call CFRelease or CFRetain on these constant strings myself.
I would not know how to replace the CFAllocator myself. Could CodeWarrior
be doing this?
I assume some kind of memory trashing is taking place, I just do not
understand how. The code that I posted occurs at the very beginning of that
function, so there is no opportunity for me to overwrite the stack, etc. I
suppose there is a possibility that I am misinterpreting the crash log or
that the stack trace from the log is not valid. Hard for me to know what is
happening since I can't trace the bug myself.
I was aware of the restriction to ASCII characters with CFSTR. I spent an
entire day reading everything I could to try to find the problem before
emailing the list :)
I didn't know that CoreFoundation is open source. That's cool! I will
check it out if I cannot find another solution.
Thanks again.
Anthony Kozar
anthonykozar AT sbcglobal DOT net
http://anthonykozar.net/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden