From: "Brian Dodd" Newsgroups: comp.os.msdos.djgpp Subject: Re: still having datafile problems with allegro Date: Mon, 13 Apr 1998 02:18:00 -0500 Organization: [poster's organization not specified] Lines: 32 Message-ID: <6gseb8$kth$1@news3.mr.net> References: <1998041301343800 DOT VAA00817 AT ladder01 DOT news DOT aol DOT com> NNTP-Posting-Host: dau116.smig.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk TackMast wrote in message <1998041301343800 DOT VAA00817 AT ladder01 DOT news DOT aol DOT com>... >okay, i'm pretty sure the datafile isn't corrupted, since i've tried the >program with 3 different datafiles, but now my program does something different >than before since i've changed the code. now, the datafile is loaded up (it no >longer freezes when trying to load it) but now when i try to blit the picture >to the screen it shuts down allegro because of a sigsev error. does anybody >know why?? char buf[15]; // char string 15 bytes long "c:\djgpp\bin\game.dat" // 21 bytes long try commenting out char buf[15]; and strcpy(buf,get_filename("c:\djgpp\bin\game.dat")); and change data=load_datafile("game.dat")); the file game.dat must be in the working directory.