Re: Midi Plugin
Re: Midi Plugin
- Subject: Re: Midi Plugin
- From: Kurt Revis <email@hidden>
- Date: Fri, 12 Jul 2002 03:05:44 -0700
On Friday, July 12, 2002, at 02:39 AM, Laurent Humbert wrote:
At 15:24 -0700 8/07/02, Kurt Revis wrote:
In Project Builder, select your plugin target, go to the Executables
tab, and set
/System/Library/Frameworks/CoreMIDIServer.framework/MIDIServer as the
executable. Then when you run or debug, the MIDIServer will run. If
your plugin is in the right place, it will get loaded by the
MIDIServer, and then you can debug it (set breakpoints in it or
whatever).
This sounds like the tip of the month, but I couldn't get it to work.
I get the message if my plugin is in "/Library/Audio/MIDI Drivers":
Error from Debugger: No symbol table is loaded. Use the "file"
command.
I've seen this too. I think this happens if the plugin that Project
Builder creates is not in exactly the same place as the one which gets
loaded by the MIDIServer process. However, even if I get the message,
breakpoints in my plugin still work correctly--do they work for you or
not? (If you are using the Apple MIDI driver sample, an easy test is to
put a breakpoint in the C function that creates your C++ driver
subclass.)
A way to work around this is to create a symlink in ~/Library/Audio/MIDI
Drivers which points to the built plugin. The MIDIServer follows the
symlink when it loads the plugin.
As an example: my plugin gets built into
/Users/Shared/krevis/Products/MyPlugin.plugin. To create the symlink:
cd ~/Library/Audio/MIDI\ Drivers
ln -s /Users/Shared/krevis/Products/MyPlugin.plugin
There are probably other ways of getting this stuff to work (the gdb
commands 'info sharedlibrary' and 'sharedlibrary add-symbol-file' look
promising) but I have never managed to figure out the details.
Hope this helps...
--
Kurt Revis
email@hidden
_______________________________________________
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.