[vtkusers] Bug in vtkEnSight6Reader?
Emmanuel Guillot
manimag at hotmail.com
Tue Aug 17 11:07:07 EDT 2004
Hi everybody
I've a segmentation fault using vtkEnSight6Reader. It's due to a
scalars->Delete() in a loop. So, in the next execution of the loop, scalars
isn't allocated anymore. That's bad...
But I still trying to understand what the loop exactly does in order to
determine how to change the function.
If anyone once encountered this problem or thinks that I'm totally wrong,
don't hesitate: that will save time ;-)
Thanks
Manu
line 548 in the CVS:
if (!measured)
{
for (i = 0; i < this->UnstructuredPartIds->GetNumberOfIds(); i++)
{
partId = this->UnstructuredPartIds->GetId(i);
output = this->GetOutput(partId);
if (component == 0)
{
scalars->SetName(description);
output->GetPointData()->AddArray(scalars);
if (!output->GetPointData()->GetScalars())
{
output->GetPointData()->SetScalars(scalars);
}
>>>> scalars->Delete();
}
else
{
output->GetPointData()->AddArray(scalars);
}
}
}
else
{
scalars->SetName(description);
output = this->GetOutput(this->NumberOfGeometryParts);
output->GetPointData()->AddArray(scalars);
if (!output->GetPointData()->GetScalars())
{
output->GetPointData()->SetScalars(scalars);
}
scalars->Delete();
}
_________________________________________________________________
Bloquez les fenêtres pop-up, c'est gratuit ! http://toolbar.msn.fr
More information about the vtkusers
mailing list