View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007186VTK(No Category)public2008-06-11 09:482016-08-12 09:54
ReporterDenis Shamonin 
Assigned ToKitware Robot 
PrioritynormalSeveritytweakReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007186: vtkIdList allocation method (Allocate) doesn't initialize NumberOfIds
DescriptionHi,

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.
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0036987)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2008-06-11 09:48 Denis Shamonin New Issue
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036987
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved
2016-08-12 09:54 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team