Mail Archives: djgpp/1998/01/29/15:15:33
Hello:
I've spent much time trying to figure out why my program won't
successfully open a second datafile while one is already opened.
NOTE: I have tried replacing the first datafile with the second one, to
make sure that there wasn't something wrong with the second datafile.
It loaded fine, so I know the datafile and it's header is good.
Here is the source for both routines.
strcpy(get_filename(buf), "c:/maped/maped.dat");
maped_datafile = load_datafile(buf);
if (!maped_datafile) {
allegro_exit();
printf("Error loading MAPED.DAT!\n\n");
return 1;
}
strcpy(get_filename(buf), "c:/maped/testspr.dat");
user_datafile = load_datafile(buf);
if (!user_datafile) {
allegro_exit();
printf("Error loading TESTSPR.DAT!\n\n");
return 1;
}
On a way-off guess, the only explanation I can come up with, is that I'm
attempting to share something that the first datafile uses, with the
second one. Thanks much!
____________________________
Matt Riker
SPAMGUARDriker AT pipcom DOT com
*** Remove SPAMGUARD ***
*** when replying! ***
- Raw text -