ref and unref in GeomVertexWriter

i have grate paint in trying to compile a class that has GeomVertexWriter in it. I cant make PT(GeomVertexWriter) because GeomVertexWriter has no ref and unref. I can’t make a GeomVertexWriter* because interrogate flips out. I realy have lots of subdivision reclusive calls to make and don’t want to carry them around on the stack (which might over flow after function calls itself couple times). Please help! Is there a reason there is no ref an unref do to them being some how very temporary? How does python use them?

Maybe i am not defining the C++ class right?

... inside the class

PT(GeomVertexWriter vwriter;
PT(GeomVertexWriter nwriter;
PT(GeomVertexWriter twriter;
PT(GeomVertexWriter cwriter; 

... in the function
    vwriter = GeomVertexWriter(vdata, "vertex");
    nwriter = GeomVertexWriter(vdata, "normal");
    twriter = GeomVertexWriter(vdata, "texcoord");
    cwriter = GeomVertexWriter(vdata, "color");

Sounds like you didn’t #include “geomVertexWriter.h”.

Note the syntax problems in your sample code, too. Should look like this:

    PT(GeomVertexWriter) vwriter;
    vwriter = new GeomVertexWriter(vdata, "vertex");

Note the closing paren and the new keyword.

David

yep thats what it was.