From: Ludvig Larsson Newsgroups: comp.os.msdos.djgpp Subject: Re: I CAN'T FREE MY MEMORY Date: Wed, 09 Sep 1998 02:13:27 +0200 Organization: FAAS/GoldHart Lines: 25 Message-ID: <35F5C827.5F87@club-internet.fr> References: <199809040315 DOT XAA14876 AT delorie DOT com> <35F006D1 DOT D89 AT yahoo DOT com> Reply-To: ludvig AT club-internet DOT fr NNTP-Posting-Host: 195.36.147.72 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 9 Sep 1998 00:15:35 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk SuSaNNa wrote: > My program uses about 60Mb of graphic data and i have only 16Mb of ram > and i don't have free > hard disk space, i load graphics in blocks of 10Mb maximum, a block of > graphics for > every stage of my game, and when i load and free repeatly, the memory > manager crash. Why?. > You saidme that when i free a malloc, dpmi can reuse the space by > another malloc, but if i load the > blocks in a maximum of 10Mb and i have 16Mb, ¿why the system crash?. > You can always allocate 10mb of memory in the beginning of the game and then reuse it yourselve. (If your bitmaps era the same size, you can reuse them I guess) HTH Ludvig Larsson > please helpme. > > Thanks for readme. sorry for my bad english, and sorry if i'm asking for > an obvious answer.