cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/19/05:11:07

From: av568 AT rgfn DOT epcc DOT edu (Beautiful Savior Lutheran Church)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Memory Models
Date: 19 Mar 1997 01:18:54 GMT
Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX
Lines: 38
Message-ID: <5gnetu$mor@news.epcc.edu>
References: <01bc33c8$f05661c0$ae80dec2 AT default>
NNTP-Posting-Host: rgfn.epcc.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Alex (alex99 AT death-star DOT com) wrote:
> I am pretty new to DJGPP but I think it's great especially because it's
> FREE!!!

> My question is:

> I am trying to compile a program from a Tutorial that was written for
> Borland C and at the top of the source code it say's:
> 	"Remember to compile in the LARGE memory model!"
> What is and how do I access this Memory Model???

There are no memory models in DJGPP; everything is in 32-bit mode. Other 
compilers refer to this as the "flat" model.

> "General Protection Fault at eip=000021ba
> eax=a0000000 ebx=00093603 ecx=00090004 edx=00000000 esi=0000011f
> edi=0000002f
> ebp=0004e4a4 esp=0004af30 program=C:\ALEX\DJ\MOUSE.EXE
> cs: sel=00a7  base=85645000  limit=0009ffff
> ds: sel=00b7  base=85645000  limit=0009ffff
> es: sel=00b7  base=85645000  limit=0009ffff
> fs: sel=0087  base=00019aa0  limit=0000ffff
> gs: sel=00c7  base=00000000  limit=ffffffff
> ss: sel=00b7  base=85645000  limit=0009ffff

> Call frame traceback EIPs:
>   0x000021ba
>   0x00002f8e"

Ick... mouse stuff. You're probably trying to access memory directly, 
something not allowed in protected mode (hence the name). The DJGPP FAQ 
contains information on how to get around such things. I don't do this 
stuff much, but if I recall correctly, __djgpp_nearptr_enable() will 
solve your problems.

--
Beautiful Savior Evangelical Lutheran Church - av568 AT rgfn DOT epcc DOT edu
We have what you need-- A Savior!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019