Re: MIDI Driver Panther Fun
Re: MIDI Driver Panther Fun
- Subject: Re: MIDI Driver Panther Fun
- From: Chris Thomas <email@hidden>
- Date: Fri, 14 Nov 2003 14:04:36 -0800
On Nov 14, 2003, at 12:28 PM, Doug Wyatt wrote:
Steve,
Sorry, I've been out ...
On Oct 30, 2003, at 14:15, Steve O'Connell wrote:
I've got a CoreMIDI driver that had worked just fine in 10.2, but
crashes
the CoreMIDI server in 10.3. In debugging the code, it appears that
in
trying to launch our server application from our CoreMIDI driver (via
Apple
event stuff, or GetCurrentProcess calls, or LaunchApplication), the
Carbon
call to the OS never returns, and the CoreMIDI server crashes (there
is no
crash log that I can find, though). If I use the launch services API
such
as LSOpenFSRef to launch our application, the same thing happens.
All I see
is "RegisterProcess failed error=-50" in the console output. If I
comment
out all calls to launch our server, the driver loads and functions
correctly.
All of this worked fine in 10.2. I thought the drivers were loaded
into the
CoreMIDI server application space, but I am not sure if they are
loaded at
application level, or the kernal level.
Application
Are some APIs no longer available
for CoreMIDI drivers? What has changed with the CoreMIDI server from
10.2
to 10.3?
Nothing that seems pertinent here.
The only thing that comes to mind immediately is that there may have
been some underlying changes in Carbon that require that the launching
process have initialized Carbon -- and the server does avoid using
Carbon.
I'd take this up on the Carbon list or file a DTS bug. You could try
the Unix way of launching a process, i.e. using vfork() and execve().
Watch out for inherited file descriptors in the child process ...
system() might be easier to use for just launching an app.
Interesting thing is that this ever worked in the first place.
MIDIServer isn't a bundled application, which is the usual requirement
for having a Process Manager process.
Chris
_______________________________________________
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.