CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 20

Thread: std::bad_alloc

Threaded View

  1. #1
    Join Date
    Apr 2004
    Location
    Canada
    Posts
    1,342

    std::bad_alloc

    I have a program that throws a std::bad_alloc exception, even though there is clearly plenty of free memory left on my computer (see attached picture of page file usage history in Task Manager). Prior to program execution, memory usage was about 600 MB, during program execution it went up to ~1.3 GB, at which point a bad_alloc was thrown. I'm wondering, why would my program run out of memory so soon?

    p.s. my OS in WinXP SP2
    Attached Images Attached Images
    Last edited by HighCommander4; August 7th, 2008 at 08:45 PM.
    Old Unix programmers never die, they just mv to /dev/null

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured