[vtkusers] Interactorstyle has memory leaks
de Boer Ingo
I.deBoer at polytec.de
Fri Jun 27 09:48:37 EDT 2003
Hi,
the following code produces a memory leak ?!
#Generic Warning: In vtkDebugLeaks.cxx, line 280
#Deleting unknown object: vtkInteractorStyle
Why is that ? any hints ?
greets
Ingo
I am using VTK 4.2.2
class vtkMyInteractorStyle : public vtkInteractorStyle
{
public:
static vtkMyInteractorStyle *New();
protected:
vtkMyInteractorStyle(void);
~vtkMyInteractorStyle(void);
};
vtkStandardNewMacro(vtkMyInteractorStyle);
vtkMyInteractorStyle::vtkMyInteractorStyle()
: vtkInteractorStyle()
{
}
vtkMyInteractorStyle::~vtkMyInteractorStyle()
{
}
in my main prog I have:
m_pvtkWin32RenderWI = vtkWin32RenderWindowInteractor::New();
vtkMyInteractorStyle *style = vtkMyInteractorStyle::New();
m_pvtkWin32RenderWI->SetInteractorStyle(style);
style->Delete();
More information about the vtkusers
mailing list