[vtkusers] crash with MarchingSquares.
Oliver Kania
ptw.freiburg at googlemail.com
Wed Feb 20 08:33:35 EST 2008
Hi all !
The following C++ code, which workd with C# wrappers and VTK 5.02
produces a crash with the newest CVS version :
vtkTIFFReader* l_imagereader = vtkTIFFReader::New();
l_imagereader->SetFileName("D:\\data\\imgs\\2008-02-18 16'12.tif");
l_imagereader->Update();
double* l_range;
l_range = l_imagereader->GetOutput()->GetScalarRange();
vtkMarchingSquares* isoLines = vtkMarchingSquares::New();
isoLines->SetInput(l_imagereader->GetOutput());
isoLines->GenerateValues(10,l_range[0] ,l_range[1]);
int* dims;
dims = l_imagereader->GetOutput()->GetDimensions();
isoLines->SetImageRange(0, dims[0], 0, dims[1], 0, 0);
isoLines->Update();
isoLines->Update(); // Ooops --- Crash !!
The crash happens in the update method.
Visual studio shows the following diagnostic message :
HEAP CORRUPTION DETECTED ...
Any help / ideas would be greatly appreciated.
regards,
Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080220/3e512ea8/attachment.htm>
More information about the vtkusers
mailing list