delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/15/09:03:20

From: The NiBBLeR <bws AT degas DOT telebyte DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: environment djggp: ALL OK, else NOT :(
Date: Thu, 11 Sep 1997 07:53:20 +0200
Organization: Brainwave Software
Lines: 38
Message-ID: <34178750.7118@pop.telebyte.nl>
References: <341575EC DOT 6E18 AT pop DOT telebyte DOT nl>
Reply-To: bws AT telebyte DOT nl
NNTP-Posting-Host: pm0-04.udn.telebyte.nl
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> I'm programming a 3d-engine in djgpp at the moment.
> But now I found something ratherly strange:
> 
> when I have the DJGPP-environment-variable on:
>     SET DJGPP=C:\DJGPP\DJGPP.ENV
> my engine works OK !!!
> 
> but when I want to run this engine (I include cwsdpmi.exe for the dpmi)
> on another computer without djgpp, I get a general protection fault ????
> (btw I tried all kind of different systems, and it only works when djgpp
> is on there... )
> 
> and I would like to spread my engine without the need of WHOLE DJGPP...
> 
> Does somebody know how this is possible, and what the causes may be...

Hello Me again,

I found the cause of the gpf, something like this:

char s[3][4];
int  i,j;

for (i=0; i<3; i++)
  for (j=0; j<4; j++)
     s[j][i]=3; // Note I swapped the i and the j in this statement


But it was hard to find this error, cause when I had the
djgpp-environment variable on,
it didn't generate an error: IT all worked fine !!!!(Even the results
looked ok !)

Thank you for all your time and help...

Greets,

Rick Blommers

- Raw text -


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