Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20000922211826.22007.qmail@web1206.mail.yahoo.com> Date: Fri, 22 Sep 2000 14:18:26 -0700 (PDT) From: Chris Jones Subject: "out of memory" error To: cygwin AT sourceware DOT cygnus DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I am having problems with memory allocation using Cgywin1.1. I complied the following code with g++ and when ran crashes and prints "out of memory". The same code runs fine with Cygwinb20. I am running on a Windows 2000 1GHz Pentium III machine with 500MB RAM. I am confused as to why it crashes with Cygwin1.1 and NOT with Cygwinb20, and why it thinks it is out of memory when it is not even approaching the available limit. Is there some limit Cygwin1.1 sets on memory usage? #include void main(void) { vector a[100]; // Crashes at i = 33 for(int i=0;i<150;i++) { cout << "i = " << i << endl; a[i].reserve(1000000); } } The same idea, except using a series of push_backs instead of reserve ends in the same way. A list with a series of push_backs also crashes. I appreciate any help anyone can give. Chris __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com