From: P DOT Koshevoy AT m DOT cc DOT utah DOT edu (Paul Koshevoy) Newsgroups: comp.os.msdos.djgpp Subject: Re: Virtual memory exceeded in `new' - leave2.cpp (0/1) Date: Thu, 19 Sep 1996 11:38:35 GMT Organization: University of Utah Lines: 13 Message-ID: <51slo3$ctg@news.cc.utah.edu> References: <51s2qo$8ei AT news DOT cc DOT utah DOT edu> NNTP-Posting-Host: ctsasync35.cc.utah.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp P DOT Koshevoy AT m DOT cc DOT utah DOT edu (Paul Koshevoy) wrote: Four more hours of debugging have helped me solve the problem on my own . It turned out that in get_simple(...) function formula for calculating the size of memory to allocat was wrong . The size calculated could be negative which would cause a crash with message " Virtual memory exceeded in `new' " . The worst part of this bug is that the crash does not leave you anything , gdb can't even tell you at what line it died . Thank you . Paul