Memory issues in C++
2012-01-17, 7:08 (This post was last modified: 2012-01-19, 8:23 by Tim Gould.)
2012-01-17, 7:08 (This post was last modified: 2012-01-19, 8:23 by Tim Gould.)
I was reading about the LDView bugs and spotted this statement.
I've been wondering why some code I'd written kept crashing and throwing std::bad_alloc and it's very likely to be this.
So... do any of the C++ gurus around here know how to bypass the problem in general? I've got some numerical code that needs to store and manipulate massive matrices and to run on 32bit systems as well as 64bit.
Tim
PS. Helping the forum live up to its C++ query predictions
Travis Cobbs Wrote:Also, no matter how much memory you have, LDView is a 32-bit app, so it will crash if it ever needs more than 2GB (or perhaps 3GB, but I don't think so).
I've been wondering why some code I'd written kept crashing and throwing std::bad_alloc and it's very likely to be this.
So... do any of the C++ gurus around here know how to bypass the problem in general? I've got some numerical code that needs to store and manipulate massive matrices and to run on 32bit systems as well as 64bit.
Tim
PS. Helping the forum live up to its C++ query predictions