Re: Porting MIDI plug-in from CW to Xcode
Re: Porting MIDI plug-in from CW to Xcode
- Subject: Re: Porting MIDI plug-in from CW to Xcode
- From: Doug Wyatt <email@hidden>
- Date: Tue, 9 Aug 2005 14:48:42 -0700
Do you have code that obtains a pointer to a C++ object based on a
pointer to a pointer to a vtable? Does that code think it knows where
in the object the vtable sits?
I have such code and got bitten by those assumptions when moving from
gcc 2.95 to 3.3 if I remember correctly.
--
Doug Wyatt
Core Audio, Apple
On Aug 8, 2005, at 17:05, Pete Gontier wrote:
We have a working (shipping) MIDI driver written in C++ and built
with CodeWarrior which needs to be converted to Xcode. We’ve got it
building but not running on Panther. (The shipping CodeWarrior
build runs fine on Panther.)
The CFPlugIn factory function is called but then the plug-in
interface object it instantiates is being called oddly. It receives
two calls to AddRef with the same value of ‘this’ but no call to
QueryInterface. The callers of AddRef are somewhat different; the
first one is...
0x8358bf60 in DriverTable::FindDriversInDirectory(short, unsigned
long) ()
...and the second one is...
0x8358bfec in DriverTable::FindDriversInDirectory(short, unsigned
long) ()
Same routine with a higher offset. Or perhaps it is only the
closest symbol to an unnamed function in one or both cases.
The lack of a call to QueryInterface is of course where the plug-in
instantiates the MIDI driver (if necessary).
I can’t guess why being built by Xcode would cause such oddness to
occur. Ideas?
— Pete Gontier <http://www.m-audio.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
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