I found the bug with my ElfData plugin and RB2010r4.

This code below, will compile in Xcode, but crash RB.

Am I just using the RB SDK wrong? Also, this code came from a "preprocess". 
Thats why you'll see the number 9 in there, instead of 
kCurrentREALControlVersion. Any expert advice on what is wrong with this code? 
I used to use assigns all the time in RB2010r3 and earlier and it worked.

Does RB2010r4 have a bug with the assigns keyword, or am I using the API wrong?

Code below:

....


#include "rb_plugin.h"

extern "C" {
        
struct ObjectMapData {
        long Data;      
};
        
long DummyFunc() {
        return 0;
}
 
 REALmethodDefinition AM_Ma_Methods[] = {
         { (REALproc) DummyFunc, 0, "Value(Key as Object, assigns Value as 
Object)" },
 };
 
 
 REALclassDefinition ObjectMapDef = {
         9,
         "ObjectMap", 0,
         sizeof(ObjectMapData), 0,
         0, (REALproc)DummyFunc,
         0, 0,
         AM_Ma_Methods, sizeof(AM_Ma_Methods) / sizeof(REALmethodDefinition),
 };
 


void PluginEntry() {
        REALRegisterClass(&ObjectMapDef);
}

}






_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to