Xref: news2.mv.net comp.os.msdos.djgpp:3900 From: leif AT b63247 DOT STUDENT DOT CWRU DOT Edu (Rillifane Rallathil) Newsgroups: comp.os.msdos.djgpp Subject: DJGPP/Allegro/Memory Problem? Date: 16 May 1996 06:34:15 GMT Organization: Case Western Reserve University Lines: 32 Message-ID: <4nei97$gr5@madeline.INS.CWRU.Edu> NNTP-Posting-Host: b63247.student.cwru.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hello, I've been writing a program using DJGPP2 & Allegro2 without much trouble, until now. I'm using MSDOS 6.2, on a P-90, with 16 MBytes of RAM, no RAM disk or the like being used, and I'm using CWSDPMI as my DPMI host. Recently I've loaded more data into memory (more specifically via Allegro's create_bitmap, etc) and have noticed an error when I exit the program: Page fault cr2=10030028 at eip12e8; flags 3046 eax=00000502 ebx=0002f278 ecx=00000000 edx=00030000 esi=00001003 edi=10030000 ebp=00000000 esp=00001270 cs=a7 ds=af es=af fs=0 gs=0 ss=af error=0004 There seem to be no problems with normal program functions, I only get the above error upon exiting the program, and it only happens when I put a certain amount (too much somehow?) of data into memory. Also, it seems there is no page fault when running the program in MSDOS mode under Win95. I've consulted the FAQ on this and since my program only uses (or so it should) approximately 2 MBytes of memory, and I have 16MB of RAM at DPMI's disposal, I'm not sure what the problem is. Also, what exactly is meant by a "page", "paging", and a "page fault"? I looked in the FAQ and couldn't really find anything that would help me. Any help or suggestions about my page fault would be much appreciated! Thanks! Leif