From: frolikcc AT indy DOT net (Chris Frolik) Newsgroups: comp.os.msdos.djgpp Subject: Bug in Allegro? Something strange is happening... Date: 4 Mar 1997 03:13:10 GMT Organization: IndyNet - Indys Internet Gateway Lines: 37 Message-ID: <5fg406$mh5@news.indy.net> NNTP-Posting-Host: ip75-54.ts.indy.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I wrote a simple program that uses the keyboard and joystick to allow the player to move a sprite around on the screen. I found that it runs fine in Windows 95, but it halts right away when I run it in DOS. When I run it in DOS, I get the following: Shutting down Allegro Exiting due to signal SIGSEGV Page fault at eip=0002d72, error=0004 eax=0007d024 ebx=0007c120 ecx=000019f6 edx=00000000 esi=00000054 edi=0003a460 edp=00079ff0 esp=00079ff0 program=c:\GTEST\MOVE.EXE cs: sel=00a7 base=10000000 limit=000affff ds: sel=00af base=10000000 limit=000affff es: sel=00af base=10000000 limit=000affff fs: sel=008f base=0001cee0 limit=0000ffff gs: sel=00bf base=00000000 limit=ffffffff ss: sel=00af base=10000000 limit=000affff Call frame traceback EIPs: 0x00022d72 0x00001b46 0x0002298a ------------------ I'm not sure if this will mean anything to anyone, but I hope it does :-) I am using djgpp, and I compile with the -lm and -lalleg options (my program uses math.h). I am almost positive that the problem happens somewhere in allegro_init(); The strange thing about this is that it runs fine under Windows 95 but not under DOS. If you would like me to post the source code, I will do that. If anyone can offer any help, I would appreciate it. Thanks, -Chris