X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Wed, 22 Sep 2004 20:19:47 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c4a0d0$Blat.v2.2.2$e31eba20@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (apendzich@wytnijplusnet.pl) Subject: Re: unload_datafile() References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Artur Pendzich" > Date: Wed, 22 Sep 2004 13:28:10 +0200 > > > I load several datafiles, create some bitmaps and then unload them from > > memory using unload_all. After it I load next set of datafiles and > > bitmaps and once again unload them. > > After several loops I have not enought memory to load datafile and in > > finction load_datafile() program freezes. > system doesn't see freed memory but cwsdpmi should see it. So why program > hangs after several load-unload sequences in load_datafile function? Probably because your use of the heap memory causes severa fragmentation, so that free memory exists, but in small chunks. You should consider allocating memory in large chunks and then subdivide them yourself. > even after reeboot go32_v2 answers : descriptors exhausted. What OS is that? If Windows, what version of Windows?