From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp Subject: Re: Memory allocation limit? Date: Sun, 17 Oct 1999 23:27:10 -0500 Organization: Rose-Hulman Institute of Technology Lines: 36 Sender: AFSAUTH AT yerricde DOT laptop DOT rose-hulman DOT edu Message-ID: <7ue7m5$i9d$1@solomon.cs.rose-hulman.edu> References: <380A114A DOT 48B06112 AT id-base DOT com> NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu X-Trace: solomon.cs.rose-hulman.edu 940220933 18733 137.112.205.146 (18 Oct 1999 04:28:53 GMT) X-Complaints-To: news AT cs DOT rose-hulman DOT edu NNTP-Posting-Date: 18 Oct 1999 04:28:53 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com wrote in message news:380A114A DOT 48B06112 AT id-base DOT com... > Is there a limit to how much memory I can > allocate with the c++ new function in DJGPP? DJGPP exists in several versions, each with its own bugs. What compiler and Binutils versions are you using? > I seem to get the error: > Virtual memory exceeded in `new' > I looked at my program, May we? Please post source code. > and it appears that not much memory is allocated > (I can't put an exact figure on it, but no more than 5mb I think). How much hard drive space do you have left? What's the largest value of foo in pointer = malloc(foo); for which nothing breaks and pointer != NULL? Try starting values around 5000000 (five million) for foo. > If anyone can answer these questions, I would really appreciate it. If you can answer my questions, c.o.m.d may answer yours. -- Damian Yerrick CM 398, Rose-Hulman Institute of Technology 5500 Wabash Ave Terre Haute, IN 47803 http://come.to/yerrick