MantisBT - VTK
View Issue Details
0007186VTK(No Category)public2008-06-11 09:482016-08-12 09:54
Denis Shamonin 
Kitware Robot 
normaltweakalways
closedmoved 
 
 
0007186: vtkIdList allocation method (Allocate) doesn't initialize NumberOfIds
Hi,

I am not sure if this a bug, but NumberOfIds has not been set by calling Allocate() method.
//------------------------------------------------------------------------------
int vtkIdList::Allocate(const int sz, const int vtkNotUsed(strategy))
{
  ...
  this->NumberOfIds = 0; // Why 0, but not sz???
}

I've to use it this way:

vtkIdList *idList = vtkIdList::New();
idList->Allocate(numIds);
idList->SetNumberOfIds(numIds); // Why do I need to call it.

Is it correct?
Thanks,

-Denis.
No tags attached.
Issue History
2008-06-11 09:48Denis ShamoninNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036987
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved
2016-08-12 09:54Kitware RobotAssigned To => Kitware Robot

Notes
(0036987)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.