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

Jothy jothybasu at gmail.com
Fri Oct 8 07:34:23 EDT 2010


Could you post the entire function?

Jothy

On Fri, Oct 8, 2010 at 12:19 PM, Fireman Fireman
<vtkusersneedhelp at yahoo.fr>wrote:

> 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
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Research Scholar
Dept. of Medical Physics
Clatterbridge Centre for Oncology
UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101008/a89a30f4/attachment.htm>


More information about the vtkusers mailing list