From: Steve Whitney Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP hates me! Date: Wed, 30 Jul 1997 16:24:22 -0500 Organization: Platinum technology Lines: 26 Message-ID: <33DFB106.57D1@platinum.com> References: <01bc0e28$5aea0c60$7b7106c2 AT po DOT white2> NNTP-Posting-Host: 192.168.168.55 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Peter White wrote: > > Well, maybe it doesn't, but it's acting like it does at the moment. Earlier > today I was working on my completely amazing game when I stumbled across a > couple of problems. The first is that I keep getting General Protection > Faults in one module which I'm testing. It allocates lots of small chunks > of memory for linked lists and stuff and works pretty well if I reduce the > number of mallocs, but that reduces the effectiveness of the game. I'm not > allocating anything near the 16 megabytes of free memory either. > > The second problem is with my script language module, which at the moment > compiles fine, but refuses to run. I've tried to use a debugger with it, > but the program exits with a page fault _before_ it gets to main! This > program was working until I made it slightly more complicated. > > Help me please! Hi Peter, I don't know your code, but maybe you could allocate a few large memory areas and just use pointers into this memory. Use typedef structures and just allocate for the sizeof(typedef)*num objects. I hope this helps -Steve