Mail Archives: djgpp/1998/04/13/07:31:45
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.
- Raw text -