Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.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@sourceware.cygnus.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@sourceware.cygnus.com