Mail Archives: djgpp/1998/08/18/09:22:37
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 -