stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject RE: STD_BAD_ALLOC.cpp test problem on Windows
Date Thu, 07 Jun 2007 10:32:28 GMT
> -----Original Message-----
> From: Martin Sebor [mailto:sebor@roguewave.com] 
> 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.

Mime
View raw message