[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
More information about the Insight-users
mailing list