> -----Original Message----- > From: Martin Sebor [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 06, 2007 9:45 PM > To: stdcxx-dev@incubator.apache.org > Subject: Re: STD_BAD_ALLOC.cpp test problem on Windows > > Still, are you aware of any Windows API that lets programs > limit the amount of dynamic memory available to them, like > setrusage() does on UNIX? I ask because allocating so much > storage can put a big stress on the system, even if for just > a few seconds.
The process memory (and/or user-mode time) can be limited using job object, but this possibility available on Windows 2000 and later (not available on Windows NT). Farid.