From: JS Churchill 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 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 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