[ITK] [ITK-users] Output to DICOM: bad_alloc

John Drescher drescherjm at gmail.com
Tue May 13 09:35:49 EDT 2014


On Tue, May 13, 2014 at 6:26 AM, elena bresciani
<elena.bresciani87 at gmail.com> wrote:
> Dear all,
>
> I need help with a std::bad_alloc error; I wrote a simple program which
> takes n input a .mha file and produces as output the same 3D image in .dcm
> format.
> While everything works well and as expected with relatively small datasets
> (half of the desired resolution), at full resolution - 1700 x 960 x 2300 -
> my program crashes and I get this error:
>
> terminate called after throwing an instance of 'std::bad_alloc'
>   what():  std::bad_alloc
> Aborted (core dumped)
>
> I understand that this is a memory management issue but I have no clue about
> its resolution.
>
> Could you help me?

I would avoid the issue and build a 64 bit application.

John
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



More information about the Community mailing list