[vtkusers] BvtkRenderWindowPackage with vtk4.0
Dean Inglis
dean.inglis at on.aibn.com
Wed Mar 6 14:09:38 EST 2002
forzakim,
>When BvtkRenderWindowPackage is used with Borland C++Builder in VTK 4.0, >
>an access violation occurs.
I have been using a slightly modified version of John's Bvtk component that
still works fine. I recently found a similar error though. In the main
form's destructor of your app you may have to add something of the following
sort:
void __fastcall TMain::FormDestroy(TObject *Sender)
{
vtkWin32OpenGLRenderWindow* renwin = RenderWindow->GetRenderWindow();
vtkRenderer* ren = RenderWindow->GetRenderer();
outlineactor->ReleaseGraphicsResources(renwin);
ren->GetProps()->RemoveAllItems();
outlineactor->Delete();
outlinemapper->Delete();
outline->Delete();
LookupTable->Delete();
reader->Delete();
}
where RenderWindow is the name of the BvtkRenderWindow component.
regards,
Dean
More information about the vtkusers
mailing list