[Insight-users] ITK memory allocation exception question

Miller, James V (Research) millerjv at crd.ge.com
Fri Jul 8 13:02:48 EDT 2005


Robert, 

What OS are trying to run on?

A stock Windows configuration only allows a process to access approximately
1GB of memory.  A stock linux configuration allows a process to access
approximately 3GB or memory.

That being said, it looks like a bad error message from the MetaImage.
It looks like the size is being converted from an unsigned to a signed
quantity.

Jim

-----Original Message-----
From: insight-users-bounces+millerjv=crd.ge.com at itk.org
[mailto:insight-users-bounces+millerjv=crd.ge.com at itk.org]On Behalf Of
Robert Maroon
Sent: Friday, July 08, 2005 12:30 PM
To: insight-users at itk.org
Subject: [Insight-users] ITK memory allocation exception question


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 
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list