delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/25/15:47:41

From: JS Churchill <churchs3 AT boat DOT bt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Page Fault During Interupt
Date: Tue, 25 Aug 1998 13:44:53 +0100
Organization: British Telecommunications plc
Lines: 19
Message-ID: <35E2B1C5.24A5@boat.bt.com>
Reply-To: churchs3 AT boat DOT bt DOT com
NNTP-Posting-Host: pc5685.btlabs.bt.co.uk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I will try and explain this first without posting the source as its
quite lengthy:

I am trying to access a malloced buffer during the mouse interrupt and
am getting a "page fault cr2=10082000 in RMCB , flags=3006, error = 0006
the fault occurs in one of my functions called from the interupt as the
first byte of the buffer is accessed, Ive ran through the debugger and
the address accessed is definately correct. the strange thing is though
it works perfectly fine under a windows dos session, but not in normal
dos. also It works perfectly under both when I use a static global array
instead of malloced memory. Is there something basic I am over looking?,
what are the possible reasons for this occuring?, I will post a cut down
source if noone can tell me an obvious reason, It seems to me as though
for some reason the access rights to the mem have changed, is this
possible? any help would be really appreciated, as I've had this problem
for a while now

Cheers in advance
Simon

- Raw text -


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