[vtkusers] problems with VTK and C++ Builder

knut.bredemeier at technoteam.de knut.bredemeier at technoteam.de
Wed Feb 12 04:57:32 EST 2003


Hello Radim,

I had the same problems. I ignored the warnings but the crash after programm - termination was not nice. I use the component BVTK to handle the vtk - view. In the destructor - code of this component I made some changes to solve this problem. I don't exactly know why, but it works:

New version:
------------
if(FInteractor)
{ FInteractor->Delete(); FInteractor = NULL; }
if(FRenderer) { FRenderer->SetRenderWindow(NULL); }
if(FRenderWindow) { FRenderWindow->Delete(); FRenderWindow = NULL; }
if(FRenderer) { FRenderer->Delete(); FRenderer = NULL; }

Old version:
------------
if (FInteractor) FInteractor->Delete();
if (FRenderer) { FRenderWindow->RemoveRenderer(FRenderer); FRenderer->Delete(); }
if (FRenderWindow) FRenderWindow->Delete();

Knut Bredemeier

--
Dipl.-Ing. Knut Bredemeier
TechnoTeam Bildverarbeitung GmbH
Werner-von-Siemens-Straße 10
98693 Ilmenau

Tel.:  +49 3677 46240
eMail: knut.bredemeier at technoteam.de



Original Message       processed by Tobit InfoCenter 
Subject: [vtkusers] problems with VTK and C++ Builder (12-Feb-2003 8:15)
From:    kolarr at feec.vutbr.cz
To:      vtkusers at public.kitware.com


Hi all,
could you please help me with this problem...

I've compiled (using Cmake) the VTK source for Borland Builder C++. I've created *.lib files and add to the project. 

Everything seems to be OK. But several problems arise:

- warning messages during compilation
      [C++ Warning] vtkDataArray.h(105): W8008 Condition is always false
      [C++ Warning] vtkDataArray.h(105): W8008 Condition is always false
      [C++ Warning] vtkFieldData.h(155): W8060 Possibly incorrect assignment
      [C++ Warning] vtkProperty.h(199): W8008 Condition is always false
      [C++ Warning] vtkProperty.h(199): W8008 Condition is always false
      [C++ Warning] vtkProperty2D.h(108): W8008 Condition is always false
      [C++ Warning] vtkProperty2D.h(108): W8008 Condition is always false
      [C++ Warning] vtkRenderWindow.h(326): W8008 Condition is always false
      [C++ Warning] vtkRenderWindow.h(326): W8008 Condition is always false
      [C++ Warning] vtkLocator.h(98): W8008 Condition is always false
      [C++ Warning] vtkLocator.h(98): W8008 Condition is always false
      [C++ Warning] vtkPointLocator.h(90): W8008 Condition is always false
      [C++ Warning] vtkPointLocator.h(90): W8008 Condition is always false
      [C++ Warning] vtkRenderWindowInteractor.h(257): W8008 Condition is always false
      [C++ Warning] vtkRenderWindowInteractor.h(257): W8008 Condition is always false
But I suppose it doesn't matter(?)

- After creating exe file, it asks for DLL file. Why? I use the LIB files (static library) during compilation and linking.

- And last and the worse error is, that after closing the interactive render window, I get error message:
"Access violation at adress 00c9c560" in module VTKRENDERING.DLL. Read of adrress 0260A8C6"

Well, I'm writing all these problems, because they could be connected...
Could you please help me?
Thanks, Radim




More information about the vtkusers mailing list