Hi,
well, what the type referenced with the _loader
attribute does would be also important. However, if I am not overlooking something the following part is an infinite loop:
BaseObject* node = _loader.GetRoot()
while (node) {
node->InsertUnder(lumiCache);
}
node
will always be True
(if _loader
did not return the null pointer in the first place) and therefore probably be responsible for some of the crashes; you are missing a break condition, something that modifies node
. The current code is also trying to insert the same node multiple times (which is not allowed in a c4d graph). You are probably trying to traverse a node graph and missing some kind of next node logic?
Cheers
zipit