From: SPAMGUARDriker AT pipcom DOT com (Matt Riker) Newsgroups: comp.os.msdos.djgpp Subject: Simultaneous Datafiles in Allegro Date: Thu, 29 Jan 1998 14:48:40 -0500 Organization: Riker Software Lines: 36 Message-ID: Reply-To: SPAMGUARDriker AT pipcom DOT com NNTP-Posting-Host: 207.61.241.233 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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! ***