[vtkusers] [VTK 5.6.1] Unable to allocate ....
Fireman Fireman
vtkusersneedhelp at yahoo.fr
Fri Oct 8 09:26:07 EDT 2010
Hello,
The problem is not in my program.
The Program crash only with large dataset ( for example 512*512 *1000)
I would like to catch this exception (explained previously)
Thank you
--- En date de : Ven 8.10.10, Jothy <jothybasu at gmail.com> a écrit :
De: Jothy <jothybasu at gmail.com>
Objet: Re: [vtkusers] [VTK 5.6.1] Unable to allocate ....
À: "Fireman Fireman" <vtkusersneedhelp at yahoo.fr>
Cc: "vtk vtk" <vtkusers at vtk.org>
Date: Vendredi 8 octobre 2010, 11h34
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/e3c10835/attachment.htm>
More information about the vtkusers
mailing list