[vtk-developers] Memory Management & Exception Handling in VTK

Randall Hand randall.hand at gmail.com
Tue Apr 12 12:09:56 EDT 2005


On Apr 12, 2005 10:51 AM, Brad King <brad.king at kitware.com> wrote:
> 
> > Alot of the functions, like Allocate, return 1 on success and 0 on
> > failure. Unfortunately, I can't see these return values ever being
> > used. Also, alot of these functions make invalid assumptions about
> > things working, most notably vtkDataArrayTemplate::WritePointer. This
> > function returns (this->Array + id), whether this->Array is NULL or
> > valid. This causes later segfaults if any of the Resize or Allocate
> > functions failed to allocate the memory.
> 
> We are aware of such problems but they are unfortunately not a high
> priority. It is still possible to handle very large data with VTK but
> it is up to the application to enable the streaming features to avoid
> allocating more memory than is available.
> 
> -Brad
> 

Is there any mechanism for using streaming features on data not derived from 
the Parallel VTK XML structures? I'm using alot of simple JPG/BMP datasets, 
and alot of older Legacy VTK datasets, but would be happy to hear of a 
generic solutions, something like a vtkDataSetToStreamingDataSet filter :).

-- 
Randall Hand
http://www.yeraze.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20050412/3842ef70/attachment.html>


More information about the vtk-developers mailing list