[vtkusers] problems with VTK and C++ Builder

Gendron, Patrick patrick.gendron at cnrc-nrc.gc.ca
Wed Feb 12 13:27:06 EST 2003


You should ignore the warnings.


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

Before building the application, have you include your lib files?
Project->add to project-> (all needed *.lib files)
Only indicating the path of your lib files is not enough.

Patrick Gendron

 -----Original Message-----
From: 	Andres Barrera [mailto:andresba at hotmail.com] 
Sent:	Wednesday, February 12, 2003 12:01 PM
To:	knut.bredemeier at technoteam.de; vtkusers at public.kitware.com
Subject:	Re: [vtkusers] problems with VTK and C++ Builder

Hi Radim and Knut,

What version of BCB are you using? I also ignore the WARNINGs, but I don't 
have the other problems you listed....

     Andres

>
>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
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers



More information about the vtkusers mailing list