[vtkusers] [VTK 5.6.1] Buffer overrun with Windows x64
Alex Malyushytskyy
alexmalvtk at gmail.com
Mon Nov 28 21:56:49 EST 2011
on any Windows systems you can't mix debug and release builds,
so when building Release only link to release libraries, when building
debug - all libraries you link to should be build for debug.
Under the windows dlls and static libraries usually have different
name ( debug name without extension ends with d ) and VTK is not an
exception.
When you build vtk it builds both versions of libraries.
Alex
On Fri, Nov 25, 2011 at 12:38 AM, riyunoa heartilly
<thyevilness at gmail.com> wrote:
> I've built VTK 5.6.1 with Visual Studio 2005 with no problems. However,
> running any code is quite strange - when I build in Release, running code in
> Release works, but in Debug there is a buffer overrun error. The reverse is
> also a problem, when I've built in Debug, running code in Debug works with
> no problems, but buffer overrun errors occur in Release. I've noticed that
> the overrun occurs when a source object is updated (see below). Any ideas?
> Thanks in advance.
>
> i.e.
>
> vtkSmartPointer<vtkSphereSource> sphereSource =
> vtkSmartPointer<vtkSphereSource>::New();
> sphereSource->SetThetaResolution(30);
> sphereSource->SetPhiResolution(15);
> sphereSource->Update(); //<--------------this line buffer overruns.
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list