Date: Thu, 10 Aug 2000 16:01:21 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: ClaudioF cc: djgpp AT delorie DOT com Subject: Re: memset etc. In-Reply-To: <8mu28b$202$1@nslave1.tin.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 10 Aug 2000, ClaudioF wrote: > Sorry I'm newbie. I've a little problem with a code I've ported from Watcom: > "General Protection Fault at eip=00002e95 etc. etc." > > Here's the code. It writes with memset() to the video memory: [snip] > void PutPixel (int x, int y, char color) > { > unsigned char *ScreenPointer; > > ScreenPointer = (unsigned char *) 0x0a0000; > memset (ScreenPointer+(x + (y*320)), color, 1); // Here's > the problem. I can't resolve it This is not supposed to work with DJGPP. See section 10.2 of the DJGPP FAQ list for detailed explanation and possible solutions.