THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/03/2011 at 07:05, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform:
Language(s) : C++ ;
---------
Hi everyone,
A user is having a problem with one of my plugins (ArrowMaker) when used in a Mac net render server or client. The plugin, which is an ObjectData plugin, works fine on a PC client or server, but when used on a Mac OSX 10.6.6 server/client it fails in the call to RegisterObjectPlugin(). The relevant code is:
String name = GeLoadString(IDS_ARROWMAKER);
return RegisterObjectPlugin(ID_ARROWMAKER, name, OBJECT_GENERATOR|OBJECT_ISSPLINE, ArrowMaker::Alloc, "Oarrowmaker", AutoBitmap("arrowmaker.tif"), 0);
and this returns FALSE, whereas it should return TRUE to indicate success. The plugin works perfectly on a standalone Mac, it only fails in the net render environment. I checked that the resource files were in place and that is okay, although it seems that a missing resource or icon file doesn't cause RegisterObjectPlugin() to fail.
Does anyone have any idea why this might be happening? The only thing I can think of is a fail in the Alloc() routine where a new plugin class is created, but I don't know why that would only fail under net render on a Mac. This is the code for that function call:
static NodeData* Alloc(void) {return gNew ArrowMaker; }
I'd be very grateful for any help resolving this. I can't test it locally as I don't use net render myself.