[vtkusers] Borland

XViz D_E at ukr.net
Mon Nov 19 12:23:23 EST 2007


Of course I have - I do the same! :)  Here is how to do it:
in FormClose event of your MAIN form you must write something like:

void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &Action)
{
  delete Form2D->vtkWindow2D;
  delete Form3D->vtkWindow3D;
}

In FormClose of your secondary forms don't delete vtkWindow.



> It did not work.  
  
> I have to close vtkBorlandRenderWindow in another form, like this: 
  
> delete formVisPrincipal->VTK1; 
  
> Do you have another suggestion? 
  
  

> From: D_E at ukr.net 
> To: vtkusers at vtk.org 
> Subject: Re: [vtkusers] Borland 
> Date: Mon, 19 Nov 2007 15:55:24 +0100 
>  
> Hello, 
>  
> You must delete your vtkBorlandRenderWindow in FormClose function, like: 
>  
> void __fastcall TForm2D::FormClose(TObject *Sender, TCloseAction &Action) 
> { 
> delete vtkWindow2D; 
> }; 
>  
>  
> > Every time I close a program done in borland C++ builder 6, an error message appears:  
>  
> > Project ... raised exception class EAccessViolation with message 'Access violation at address 00000000. Read of address 00000000' Process stopped. Use Step or Run to continue. "  




Veja mapas e encontre as melhores rotas para fugir do trвnsito com o Live Search Maps! Experimente jб!


More information about the vtkusers mailing list