delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/09/22/14:23:11

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" <eliz AT gnu DOT org>
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>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2
In-reply-to: <opsep7g80nzsx1fw@froggy> (apendzich@wytnijplusnet.pl)
Subject: Re: unload_datafile()
References: <opsep0qci3zsx1fw AT froggy> <opsep7g80nzsx1fw AT froggy>
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

> From: "Artur Pendzich" <apendzich AT wytnijplusnet DOT pl>
> 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?

- Raw text -


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