From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: datafiles problems in allegro Date: Mon, 6 Apr 1998 22:18:12 +0100 Organization: None Message-ID: References: <1998040620155601 DOT QAA16833 AT ladder03 DOT news DOT aol DOT com> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 32 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk TackMast writes: >i'm wondering if it might be because i use the dat archiver instead of >the grabber Unlikely: both utilities use the exact same code for creating and manipulating the datafiles. >since the grabber just won't work. Why not? You need to give some more details about this problem before anyone can advise you how to solve it! Have you tried using the -8 commandline option to force a 256 color mode? >strcpy(buf, argv[0]); >strcpy(get_filename(buf), "example.dat"); >datafile = load_datafile(buf); > >datafile = load_datafile("Picture.dat"); Why do you load two files and assign the results to the same variable? This will lose the contents of example.dat entirely. It shouldn't cause a crash, though, and the code seems fine apart from that. All I can suggest is that you try loading your image into one of the Allegro programs (which means getting the grabber working), and see whether you have any similar problems there... -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ "Pigs use it for a tambourine" - Frank Zappa