On Apr 17, 1:17 pm, Martin <[EMAIL PROTECTED]>
wrote:
> I have a program compiled with g++ 4.1.3 on Ubuntu 7.10. I frequently
> get std::bad_alloc exceptions from new when trying to allocate a
> couple of thousand objects of around 160 bytes each. According to top,
> my program uses about 30 MB of memory when I get the exception, and
> there is 1 GB of memory available. Can someone explain why I get a
> bad_alloc under such circumstances?

You might be running out of memory that a process can allocate.. check
the output of command: ulimit -a.
m.
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to