From: Edward Hill Newsgroups: comp.os.msdos.djgpp Subject: Re: CAN I GET ALLEGRO 2 WORK Date: Thu, 18 Feb 1999 16:48:11 -0800 Organization: Easams Engineering Systems Lines: 25 Message-ID: <36CCB4CB.2AE5@gec.nospam.com> References: <36CC3E6C DOT 88306D61 AT cats DOT ucsc DOT edu> NNTP-Posting-Host: pc02372.gmsws.gecm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01C-GECMMTL (Win95; I; 16bit) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eric Berenson wrote: [snip] : /* This program crashes unrecoverably in a power-down fashion. */ : #include : #include : #include "allegro.h" : : int main() : { : allegro_init(); : install_keyboard(); : if (set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0) != 0) { I would suggest changing the 800 and 600 to 320 and 200 respectively. Compile, and run again and see if it crashes. Then step if that works step the graphics up to 640 by 480 and see if it crashes. Post your results... : allegro_exit(); : printf("Error setting graphics mode\n%s\n\n", allegro_error); : return 1; : } : return 0; : }