[vtkusers] [VTK 5.6.1] Unable to allocate ....

Fireman Fireman vtkusersneedhelp at yahoo.fr
Fri Oct 8 07:19:48 EDT 2010


Hi, 

I'm using the last VTK 5.6.1. 

I'm using a vtkDICOMImageReader to read DICOm images. I have got this error 

\vtk\common\vtkDataArrayTemplate.txx, line 140 
vtkShortArray (0931BF08): Unable to allocate 129499136 elements of size 2 
bytes. 

What's the problem? 
 
How can I catch this exception to  avoid the crash of my program  
 
I tried to do this but I could not cath  the exception :

//-----------------------------------------------
     try
       {
         dicomReader->Update();
       }
      catch (vtkstd::bad_alloc)
      {
         //It doesn't pass through here
      }
      catch (...)
      {
         //It doesn't pass through here
      }
//---------------------------------------------------------
 
Thank you in davance 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101008/8676dd59/attachment.htm>


More information about the vtkusers mailing list