Skip to content
Prev 140622 / 398506 Next

Error: cannot allocate vector of size 3.0 Gb

John,

Am I missing something here?  You have one 1 GB of RAM, you want to get a second 1 GB of RAM, and you want to know if you will be able to create a 3 GB vector?  With or without a 64bit OS, I don't think you will be successful.  In addition to total memory available, I believe you need to have sufficient contiguous memory to allocate an object.  If memory is fragmented, you won't be able to create the vector, even if the total free space is sufficient.  If I am incorrect, I'm sure someone will be along to correct me shortly.

Hope this is helpful,

Dan

Daniel Nordlund
Bothell, WA