[vtkusers] RE: [vtk-developers] Change in DataArray to use operator new instead ofmalloc

Ken Martin ken.martin at kitware.com
Tue Feb 7 15:53:16 EST 2006


Why the change and the break with backwards compatibility?

> -----Original Message-----
> From: vtk-developers-bounces+ken.martin=kitware.com at vtk.org [mailto:vtk-
> developers-bounces+ken.martin=kitware.com at vtk.org] On Behalf Of Utkarsh
> Ayachit
> Sent: Tuesday, February 07, 2006 3:47 PM
> To: vtkusers at public.kitware.com; 'vtk-developers'
> Subject: [vtk-developers] Change in DataArray to use operator new instead
> ofmalloc
> 
> vtkDataArrayTemplate used malloc()/free()/realloc() to allocate/free
> memory. That has now been changed to use the C++ operators new and delete.
> 
> This change will affect those who have been passing an array to the
> class to manage using SetArray() or SetVoidArray() with the "save"
> argument set to "0". Earlier, it was assumed that the array was
> allocated using malloc(), now it is required that the array is allocated
> using new[].
> 
> Utkarsh.
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers




More information about the vtkusers mailing list