delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/13/19:39:15

From: Temujin <temujin AT sentex DOT net>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019