From: Temujin Newsgroups: comp.os.msdos.djgpp Subject: General fault error on a simple i++ Date: Wed, 13 Aug 1997 09:25:23 -0700 Organization: Sentex Communications Lines: 10 Message-ID: <33F1DFF3.56E1@sentex.net> NNTP-Posting-Host: 207.245.212.9 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Okay, made a program that works fine putting an image to the screen pixel at a time. when I try to put a simple i++ into a for loop to make the image display right (320/200 onto a VBE 2.0 640/480) I get a general protection error.. ON THE simple i++ command why would it do this? is DPMI just that touchy? And when programming under DPMI is there a memcpy that works? I've tried the dosmemset and memcpy and BOTH give me a general protectino error or REboot my machine. (copying from a memory block created with malloc over to a linear frame buffer)