[vtkusers] vtkSmartPointer BUG

pjtr hahn pjtr.hahn at googlemail.com
Tue Oct 7 09:39:30 EDT 2008


Hello,

since my last CVS Update (today)  vtkSmartPointer isn't working like
expected anymore.

While code like

function_scope{

vtkSomeObject * ptr = vtkSomeObjekt::New();

...... more code ......

ptr->Delete();

}

works I get memory leak error messages when changing the same code to

function_scope{

vtkSmartPointer< vtkSomeObject > ptr = vtkSomeObjekt::New();

...... more code ......

} // end scope

This worked before.

I'm on Vista / Visual Studio Express 2008

regards,

Peter



More information about the vtkusers mailing list