From: "Joshua Eckstein" Newsgroups: comp.os.msdos.djgpp Subject: HELP! DJGPP Program Crashes Date: Mon, 14 Jul 1997 14:26:21 -0500 Organization: Flashnet Communications, http://www.flash.net Lines: 25 Message-ID: <5qdugm$p6o$1@excalibur.flash.net> NNTP-Posting-Host: dasc12-85.flash.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I'd like to what causes the abnormal crashes in my programs... Whenever I seem to use a certain function too much it bombs to DOS (see below). I know where the problem is, I just don't know why it occurs... What are the limits, if any, imposed on DJGPP code, other than normal errors (my progs compile fine, they just don't run fine...)? When I deal with a certain pointer too much it does the same (for some reason, it only will be dealt with three times in the main () function... you can declare it, but if you touch it.....) Please reply using e-mail below. And BTW, does DJGPP have options for changing memory models, or does it all compile into medium? void setpal(int num, byte red, byte gre, byte blu) { outportb(0x3C8, num); outportb(0x3C9, red); outportb(0x3C9, gre); outportb(0x3C9, blu); } Thank you for your time and patience. -Josh kwe1 AT flash DOT net