MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0005341 | VTK | (No Category) | public | 2007-07-13 13:58 | 2007-09-18 16:56 |
Reporter | Andreas Gerndt | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0005341: BUG in 64bit vtkDataArrayTemplate | ||||
Description | I am working on a very huge terrain dataset consisting of multiple tiles. I hit the 32bit limit of point numbers so that I recompiled VTK with the VTK_USE_64BITS_IDS flag set. Nevertheless, appending data still crashed. The reason was the usage of an "int" in vtkDataArrayTemplate.txx. Changing it to vtkIdType fixed this problem. //---------------------------------------------------------------------------- // Allocate memory for this array. Delete old storage only if necessary. template <class T> int vtkDataArrayTemplate<T>::Allocate(vtkIdType sz, vtkIdType) { ... //========================================= int newSize = (sz > 0 ? sz : 1); //========================================= this->Array = (T*)malloc(newSize * sizeof(T)); if(!this->Array) { vtkErrorMacro("Unable to allocate " << newSize << " elements of size " << sizeof(T) << " bytes. "); return 0; } this->Size = newSize; } return 1; } //---------------------------------------------------------------------------- | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2007-09-18 16:55 | David Cole | Status | closed => @80@ | ||
2007-09-18 16:55 | David Cole | Note Added: 0009107 | |||
2007-09-18 16:56 | David Cole | Status | @80@ => closed | ||
2007-09-18 16:56 | David Cole | Note Added: 0009108 | |||
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|