From: Jeff Williams Newsgroups: comp.os.msdos.djgpp Subject: Problem with memory Date: 13 Mar 1998 03:02:47 GMT Organization: Ziplink.net Lines: 20 Message-ID: <6ea7kn$gvv$1@kali.ziplink.net> NNTP-Posting-Host: zip1.ziplink.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello, First off, I have never programmed in protected mode before, so this question may seem painfully obvious, but I just can't get it. The problem is, in a game I am making, I need to initialize and use a somewhat large int array (and it just wont work). The array is supposed to be 1024x960, but if I initialize an array (after all of the image/sample loading into memory) larger than 320x200, the program crashes right away. I don't even have to attempt to manipulate it for it to crash, so I assume it is a memory problem. I tried doing a malloc loop before and after loading everything, and for some odd reason, my avail. memory never decreased or increased (I ran it before loading images, etc, after loading them, and after initializing the 320x200 array... and it always stayed at 8mb). I am running Win95, and have 24mb of RAM. If anyone knows what is wrong, please let me know. gorge AT ziplink DOT net -Joe Duffy Thanks.