Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Dec 12, 2017 3:06 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: "Cant find pluginmethod" Assert when loading plugi
PostPosted: Wed Dec 19, 2007 1:49 pm 
Offline

Joined: Tue Feb 07, 2006 11:40 am
Posts: 38
I have a project for a Macho Carbon plugin. Currently it is compiled as a dylib for intel only, using the RB Plugins template in the latest Plugin API SDK.

My plugin compiles ok under gcc4 on Tiger, but when I run it via RB R4, I
get assert errors: pluginEntrytable.GetEntry(...)
Failure message: cant find plugin method [ PLUGINCLASS.METHODNAME(...) ]

It seems to recognise all my plugin method name and declaration strings but
for each plugin method puts out the above assert.

Can anyone tell me what are the typical causes of this assert ?. I cannot
even get Xcode to breakpoint on pluginEntry or in pluginMain() , yet the
debug app launches and obviously gets far enough to read the
REALmethodDefinition table!


Here is the class/plugin definition stuff: ( all the functions in question
are defined above this as static functions )

//********** CSolo Methods Structure Definition
***************************
REALmethodDefinition Solo_RBMethods[] = {
{(REALproc) Solo_Destructor,
REALnoImplementation,"Destructor()",REALconsoleSafe },
{(REALproc) Solo_Reset, REALnoImplementation, "Reset() As
Integer",REALconsoleSafe },
{(REALproc) Solo_FlushSolo, REALnoImplementation, "FlushSolo(iIdx2FlushTo
As Integer) As Integer",REALconsoleSafe },
{(REALproc) Solo_GenerateInitialBuffers, REALnoImplementation,
"GenerateInitialBuffers(iInitialSize As Integer) As
Integer",REALconsoleSafe},
{(REALproc) Solo_GetSoloBuffer, REALnoImplementation, "GetSoloBuffer(ByRef
psSoloBuffer As Ptr ) As Integer",REALconsoleSafe },
{(REALproc) Solo_GetNumOfMarks, REALnoImplementation, "GetNumOfMarks() As
Integer",REALconsoleSafe },
{(REALproc) Solo_PutBuffers, REALnoImplementation, "PutBuffers(ByRef
psSoloBuffer As Ptr, iSize As Integer ) As Integer",REALconsoleSafe },
{(REALproc) Solo_AddSolo, REALnoImplementation, "AddSolo(iNewMark As
Integer, fTonality As Single, fCycleEnergy As Single, fNewTransientVal As
Single, fOnset As Single ) As Integer",REALconsoleSafe },
{(REALproc) Solo_AddSolo1, REALnoImplementation, "AddSolo(iNewMark As
Integer, fTonality As Single, fCycleEnergy As Single, fNewTransientVal As
Single, fOnset As Single, fPitch As Single ) As Integer",REALconsoleSafe },
{(REALproc) Solo_RemoveLastMark, REALnoImplementation, "RemoveLastMark( )
As Integer",REALconsoleSafe },
{(REALproc) Solo_GetLastSolo, REALnoImplementation, "GetLastSolo( ) As
Integer",REALconsoleSafe },
{(REALproc) Solo_GetSolo, REALnoImplementation, "GetSolo(iIdx As Integer )
As Integer",REALconsoleSafe },
{(REALproc) Solo_GetPitch, REALnoImplementation, "GetPitch(iIdx As Integer
) As Integer",REALconsoleSafe },
{(REALproc) Solo_GetEstPitch, REALnoImplementation, "GetEstPitch(iIdx As
Integer ) As Integer",REALconsoleSafe },
{(REALproc) Solo_GetTransientVal, REALnoImplementation,
"GetTransientVal(iIdx As Integer ) As Single",REALconsoleSafe },
{(REALproc) Solo_GetEnergy, REALnoImplementation, "GetEnergy(iIdx As
Integer ) As Single",REALconsoleSafe },
{(REALproc) Solo_GetTonality, REALnoImplementation, "GetTonality(iIdx As
Integer ) As Single",REALconsoleSafe },
{(REALproc) Solo_GetOnset, REALnoImplementation, "GetOnset(iIdx As Integer
) As Single",REALconsoleSafe },
{(REALproc) Solo_GetClosestSoloIdx, REALnoImplementation,
"GetClosestSoloIdx(iStartIdx As Integer, iTimeStamp As Integer ) As
Integer",REALconsoleSafe },
{(REALproc) Solo_GetNextDist, REALnoImplementation, "GetNextDist(ByRef
iStartIdx As Integer, iOffs As Integer ) As Integer",REALconsoleSafe },
};

//********** CSolo::CreateInstance() ***************************
static int Solo_CreateInstance( void* unused,REALobject& pCSolo)
{
pCSolo = REALnewInstance( CSoloRBRef );

ClassData(Solo, pCSolo, Solo_Data, data );

CSoloIf* pSolo;
int err = CSolo::CreateInstance( pSolo );
data->iClass = ( CSolo*) pSolo;


}
//********** CSolo::DestroyInstance() ***************************
static int Solo_DestroyInstance( void* unused,CSolo pCSolo)
{
}
//********** CSolo Shared Methods Structure Definition
***************************
REALmethodDefinition Solo_RBSharedMethods[] = {
{(REALproc) Solo_CreateInstance, REALnoImplementation,
"CreateInstance(ByRef pCSolo As CSolo ) As Integer" ,REALconsoleSafe },
{(REALproc) Solo_DestroyInstance, REALnoImplementation,
"DestroyInstance(pCSolo As CSolo ) As Integer",REALconsoleSafe },
};

//********** CSolo REALclass Definition ***************************
REALclassDefinition Solo = {
kCurrentREALControlVersion,
"CSolo",
nil, // superclass
sizeof( struct Solo_Data), // data struct size
0, // reserved
(REALproc) Solo_Initializer, //initializer
(REALproc) Solo_Finalizer, //deinitializer
NULL, // property list
0, // property count
Solo_RBMethods,
sizeof( Solo_RBMethods) / sizeof(REALmethodDefinition), // method count
NULL, // events
0, // event count (how many events)
NULL, // event instances
0, // event instance count
NULL, // interfaces
NULL, // obsolete1
NULL, // obsolete2
NULL, // Constants
0, // Constantcount
REALconsoleSafe, // mFlags
NULL, // sharedProperties
0, // sharedPropertyCount
Solo_RBSharedMethods, // shared method struct
sizeof( Solo_RBSharedMethods) / sizeof(REALmethodDefinition),
// property count
};


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group