Mail Archives: djgpp/1997/09/15/09:03:20
> 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 -