On 03/08/2013 at 22:44, xxxxxxxx wrote:
Cinema 4D Version: 12
Platform: Mac OSX ;
Language(s) : C++ ;
I am working on a C++ plugin that requires this object hierarchy:
This plugin has two parts:
- a scene exporter (SceneSaverData)
- a tool plugin which helps creating and setting up the hierarchy in the correct way
Both parts are in the same Xcode project.
I have spent the last few weeks working on the tool plugin part and today I finally was ready to resume work on the exporter. But now, when I try to export C4D hangs with the beach ball. The crash report says Bad Access. This didn't happen before.
Here is the mysterious part (at least to me) :
This project is plastered with GePrint's that show what's going on in my plugin and where it's at. Right at the top of my SceneSaver code it prints "here I am" to the console.
Then it checks my hierarchy and prints errors if it doesn't find the expected objects.
->When I have the hierarchy as it should be (above) I get the crash - and none of the messages that are supposed to be printed to the console before anything else happens in the SceneSaver suggesting that the crash happens before it enters my code.
->When I run the SceneSaver on the same hierarchy MINUS the last child (Object3) I get all the expected messages plus the one that says: "Object3 missing" and the plugin exits properly.
How could the presence of Object3 in the hierarchy crash C4D before it even gets to my code?
->Maybe something I did in the tool plugin. Compiling a version where the tool plugin is not registered doesn't change things, though.
I don't know how to troubleshoot this one because the crash doesn't seem to happen in my code - even though it surely happens because of it. So far the only idea I have is to go back to an older version which doesn't have that problem.
Any ideas are most welcome.