Hello Carsten,

> Can you try the attached patch, please?

I applied the patch and it worked, the code runs now without crashes or 
memory leaks. Unfortunately the problem occurs on a different place as 
well. Is this a more general problem?


Add the following code to the example from my last post at the end of 
create(..)

{
        NodeRefPtr node = NodeRefPtr(Node::create());
        printOSGInstances();
        syncNeeded = true;
        syncBarrier->enter(2);
        syncNeeded = false;
        syncBarrier->enter(2);
        printOSGInstances();

        SimpleTexturedMaterialPtr mat = SimpleTexturedMaterial::create();
        beginEditCP(mat);
        mat->setImage(Image::create());
        endEditCP(mat);

        MaterialGroupPtr mat_grp = MaterialGroup::create();
        beginEditCP(mat_grp);
        mat_grp->setMaterial(mat);
        endEditCP(mat_grp);

        beginEditCP(node);
        node->setCore(mat_grp);
        endEditCP(node);

        printOSGInstances();
        syncNeeded = true;
        syncBarrier->enter(2);
        syncNeeded = false;
        syncBarrier->enter(2);
        printOSGInstances();
}
printOSGInstances();
syncNeeded = true;
syncBarrier->enter(2);
syncNeeded = false;
syncBarrier->enter(2);
printOSGInstances();


Thanks!
Marc

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to