delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/18/09:22:37

Date: Tue, 18 Aug 1998 16:22:18 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: JS Churchill <churchs3 AT boat DOT bt DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: malloc'd memory access during mouse interupt
In-Reply-To: <35D80701.378D@boat.bt.com>
Message-ID: <Pine.SUN.3.91.980818162024.12510h-100000@is>
MIME-Version: 1.0

On Mon, 17 Aug 1998, JS Churchill wrote:

> basically I am using near pointers using the __djgpp_nearptr_enable(),
> I malloc some abitary memory usually less than 30K for a temp buffer
> the pointer is a global pointer. the problem comes when I a try to
> access the memory from within my mouse interupt service rountine
> I get a segmentation violation, is there any special operation I need
> to carry out in order to access this mem during an interupt???

How is your use of near pointers relevant to accessing malloc'ed buffer?  
I suggest to post a short test program that people could look into or try 
to compile.  I suspect that you somehow mixed up near pointers and 
malloc'ed storage.

- Raw text -


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