Date: Thu, 22 Oct 1998 09:47:11 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: jsc AT lds DOT co DOT uk cc: djgpp AT delorie DOT com Subject: Re: new user - mouse problems In-Reply-To: <70kvef$r9$1@nnrp1.dejanews.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Wed, 21 Oct 1998 jsc AT lds DOT co DOT uk wrote: > I'm sorry to trouble everyone YET again, but I still can't get the dang thing > to work. Here's the code again if you missed - can some kind soul please > comile it and tell me if it works. Try using _NAIVE_DOS_REGS, as the library reference advises on the `int86' page. (Btw, the FAQ mentions this in section 18.1.) > Whay > are all the other functions working but this one gives a memory fault upon > pressing of the left mouse button? Note - it only gives the fault if the > Plot_Pixel function tries to access the x and y pointers (from the mouse). This means that you are passing some garbled or grossly incorrect values in x and y. The proper way to solve these problems is to run the program under a debugger, display the arguments that are passed to the crashing function, and then find out where did those bogus values come from.