delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/08/20:31:43

From: Ludvig Larsson <ludvig AT club-internet DOT fr>
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
NNTP-Posting-Date: 9 Sep 1998 00:15:35 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

- Raw text -


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