[Insight-users] ITK memory allocation exception question

Robert Maroon robertmaroon at yahoo.com
Fri Jul 8 12:29:53 EDT 2005


Hi everyone,

I have an C++ program using ITK that tries to write a
1222x1754x256 floating point volume to memory but
gives the following exception instead:

MetaImage: M_ReadElements: data not read completely
   ideal = -2100137984 : actual = 0

followed later in the algorithm by:

terminate called after throwing an instance of
'std::bad_alloc'
  what():  St9bad_alloc
Aborted

There is a total of 32GB of memory on the machine, and
the total amount of memory used by the volume should
be approximately 2 GB.

Can anyone tell me why this exception is usually
thrown?

Thanks,

Robert



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Insight-users mailing list