[Insight-users] [vtkusers] vtkusers Digest, Vol 66, Issue 21

John Drescher drescherjm at gmail.com
Sat Oct 17 21:06:31 EDT 2009


> I have a problem with reading the txt file whose size is around 200M in
> order to visualize it, the error message I get is as follows:
>
>
> First-chance exception at 0x7d4e237e in 2.exe: Microsoft C++ exception:
> std::bad_alloc at memory location 0x016dfc54..
>
> Unhandled exception at 0x7d4e237e in 2.exe: Microsoft C++ exception:
> std::bad_alloc at memory location 0x016dfc54..
>
>
> I do can read a 30M txt file successfully, actually the physical memory is
> not a problem I think (since I run the program on a 64-bit winXP with 4G
> memory and 8CPUs), as you see above I still get the problem wtih memory
> allocation, I also checked the physical memory usage right before the error
> message poped up, it consumed only around 2G physical memory, could anyone
> help me figure this out?
> Thanks a lot!
>

Is your application a 64 bit application? If not you probably ran out
of address space. The address space for a 32 bit application is either
2GB or 3GB on 64 bit windows depending on if you linked with the
LARGEADDRESSAWARE flag.

John


More information about the Insight-users mailing list