[vtkusers] x64 build of 5.4.2 with Visual Studio 2005 crashes in vtkPolyData::ComputeBounds()
Thuc Bui
bui at calcreek.com
Thu Aug 13 19:47:11 EDT 2009
Hi All,
I hope someone has an idea how to proceed to debug this problem. I would
appreciate very much for any help. The same codes work fine in x86 build.
VTK 5.4.2 (the same problem for 5.4.0) is built with Visual Studio 2005 via
CMake 2.6.4, /machine:x64 on a 64-bit Vista Ultimate. It crashes in
GetPoint() when vtkPolyData::ComputeBounds() is called, and
GetNextCell(npts, pts) returns an out-of-range pts[0] at 279,172,874,241.
Below is the snippet of vtkPolyData::ComputeBounds():
int t, i;
vtkIdType *pts = 0;
vtkIdType npts = 0;
double x[3];
vtkCellArray *cella[4];
...
// Iterate over cells's points
for (t = 0; t < 4; t++)
{
for (cella[t]->InitTraversal(); cella[t]->GetNextCell(npts,pts); )
{
for (i = 0; i < npts; i++)
{
this->Points->GetPoint( pts[i], x );
Many thanks in advance,
Thuc Bui
More information about the vtkusers
mailing list