Date: Tue, 18 Aug 1998 16:22:18 +0300 (IDT) From: Eli Zaretskii To: JS Churchill 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.