Debugging my problem in Reaper (when I add the FX) has revealed that it seems that the memory pointer that is coming to the Open/Construct methods of the IPlugAUFactory is not valid/big enough. It's the pointer mInstanceStorage, that will be set. For me the following new coding in MakePlug seems to be a problem when instantiating the object:
Code:
- return new PLUG_CLASS_NAME(instanceInfo);
+
+ if(memory)
+ return new(memory) PLUG_CLASS_NAME(instanceInfo);
+ else
+ return new PLUG_CLASS_NAME(instanceInfo);