From: pdm AT rnl DOT ist DOT utl DOT pt (Pedro Duarte S. Marques) Newsgroups: comp.os.msdos.djgpp Subject: Reserve memory on compilation ? Date: 29 Jul 1998 15:17:25 GMT Organization: Instituto Superior Tecnico Lines: 12 Message-ID: <6pnee5$g4p$1@ci.ist.utl.pt> NNTP-Posting-Host: camoes.rnl.ist.utl.pt To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk How can I tell the compiler to reserve more memory to the execuatble. I' m trying to run a program that uses 10-12 megs, and when it runs it says "virtual memory exceded in new", or something like that. I also have stack size problems, but in this case it just dumps the registers , I'm using about 800 k on an array ( just to test, I tryed to allocate an array of 1000000 ints , and it gave the same error). If i compile the same program o visual c++ 5.0, and reserve about 4MB of stack, it runs without any problem. Thank's in advance.