delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/11/22:16:19

From: Alistair Bain <AHBain AT NOSPAMPLEASEWEREBRITISH DOT pulsedesign DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro datafiles - HELP!!!
Date: Sat, 11 Oct 1997 19:31:51 +0100
Sender: Alistair Bain <AHBain AT pulsedesign DOT demon DOT co DOT uk>
Distribution: world
Message-ID: <9uElnDAXY8P0MwFy@pulsedesign.demon.co.uk>
NNTP-Posting-Host: pulsedesign.demon.co.uk
MIME-Version: 1.0
Lines: 26
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

OK, I'm not sure what's going on here, maybe you can help.

I've been looking at some of my old programs and when I try to compile
them (no errors) they crash (not an uncommon event - but read on). I
have isolated the problem to the load_datafile line.
The datafiles were originally created in  2.1 and 2.11. Are there any
known problems with 2.2 datafiles.
All the datafiles contain is a few modex compiled sprites and a palette.
I've tried exporting the sprites to pcxs and then re-importing them into
a new datafile - The program still crashes at the load_datafile
statement.

I have been using 
DATAFILE *data; //with global variable initialisations
data=load_datafile("data.dat"); //in main

I have also tried printing the filename to a temp buffer and then
passing that to the load_datafile.

PS have tried downloading new 2.2 and making it.
PPS Haven't tried re-installing DJGPP (yet)
PPPS They used to work...
-- 
Alistair Bain
AHBain AT NOSPAMPLEASEWEREBRITISH DOT pulsedesign DOT demon DOT co DOT uk

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019