From: "Andrew R. Gillett" Newsgroups: comp.os.msdos.djgpp Subject: Re: unload_datafile( ) freezes - please help :( Date: Wed, 16 Feb 2000 18:34:24 -0000 Organization: www.release-dates.co.uk Lines: 32 Message-ID: References: NNTP-Posting-Host: modem-166.false-clownfish.dialup.pol.co.uk X-Trace: newsg4.svr.pol.co.uk 950726067 31922 62.137.9.166 (16 Feb 2000 18:34:27 GMT) NNTP-Posting-Date: 16 Feb 2000 18:34:27 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: MicroPlanet Gravity v2.20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In comp.os.msdos.djgpp, Riddler02 AT aol DOT com wrote: > Hello all- > > I am using all the latest versions of GCC, Allegro, and RHIDE under Win95. > heres the problem: i have the following datafile (which now contains a bunch > of RLE_SPRITEs and BITMAPS) > > DATAFILE *datafile; > > and when I call the function > > unload_datafile(datafile); > > my program freezes. I have isolated it and I know it is causing the problem. > i've tried using unload_datafile() in other smaller test-programs and it > works fine. I think this problem arose around the time when i changed the > type of some of the datafile objects from BMP to RLE. anyway, since the > program freezes I have to use ctrl+alt+end, and here's the messages RHIDE > turns up with: I have the same problem. It happens when I compile my game for Windows using Mingw32. It doesn't happen if I compile it with DJGPP. Also, it only happens if certain things happen in the game. If I move unload_datafile() to later in the program, it crashes on a call to destroy_bitmap() instead. Also, there are unexpected things happening with samples in the Windows version - one of the samples sometimes repeats for no good reason. -- Andrew Gillett http://argnet.fatal-design.com/ ICQ: See homepage I collect trash in my brain; I believe you do the same.