From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp,comp.programming Subject: Re: Problem with DJGPP Followup-To: comp.os.msdos.djgpp Date: 4 Sep 2001 20:52:51 GMT Organization: Aachen University of Technology (RWTH) Lines: 25 Message-ID: <9n3ev3$r6i$1@nets3.rz.RWTH-Aachen.DE> References: <9n2t99$sga$1 AT news DOT telecom DOT cz> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 999636771 27858 137.226.32.75 (4 Sep 2001 20:52:51 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 4 Sep 2001 20:52:51 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com [Note F'up2 limited to DJGPP group] In comp.os.msdos.djgpp Rene wrote: > What do I do wrong when the program built in DJGPP exits with General > protection fault error? Put this way, the question would is unanswerable for lack of details. But fortunately, you did include them, disguised as an "example": > For example, this occurs when using the fread() from > stdio.h, when I want to put pixel directly into the video memory > (0xa0000000), etc. Because that's just plain wrong. Welcome to protected mode, which is called so because it protects you (or more precisely: the sanity of your computer system) from such dangerous operations. You definitely should consult the DJGPP FAQ to learn about the differences between DJGPP and the more traditional 16bit DOS compilers like Turbo C. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.