[vtkusers] vtk56 - VS2008 - Cone example Errors

John Drescher drescherjm at gmail.com
Thu Sep 30 14:51:15 EDT 2010


On Thu, Sep 30, 2010 at 2:39 PM, Bob Palank <bob at stlcc.org> wrote:
> "> I assume you put D:\Program Files\VTK\include\vtk-5.6\ in the
>   additional include directories for your project. "
>
> I forgot   ...  but I did now !
> --------------------------------------------------------------------
> Execution attempt
> 1. All code beyond includes and pragmas
>   was commented out except the return 0;  ==>  Runs clean
> --------------------------------------------------------------------------
> Added these 2 lines
> //    Let's build a primitive object we wish to examine - a Cone ?
>    vtkConeSource *cone = vtkConeSource::New();
>
> Rebuild all and Runs clean again
> ------------------------------------
> Added
>     cone->SetResolution(3);
>
> Then Rebuild all and   execution fails with
> An Unhandled exception in the executable
>  With an Access violation reading location 0x0013
>
> Your thoughts ?
>
Verify that only the vtk dlls you compiled are in your path (no .dlls
in the system32 folder). And also it is essential that what ever
configuration you built vtk and installed is the same that you are
running your application. You can not build vtk for release install
that and then run your application in debug mode.

John



More information about the vtkusers mailing list