delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/25/03:06:36

Message-Id: <9706250705.AA08342@sun4nl.NL.net>
Date: Wed, 25 Jun 1997 10:03:00 +0200
From: Rob den Boer <rob DOT den DOT boer AT derijke DOT nl>
Subject: AW: Memory Eater....
To: Mike Winsor <mwinsor AT hotmail DOT com>
Cc: djgpp <djgpp AT delorie DOT com>



>As you may or may not know, I have a game in development.  But as of   
>lately
>I've been having a nasty problem with memory loss...  Every time I load   
an
>animation or a map file that the game uses I lose somewhere between   
30->50k


I have a piece of code that traps the malloc/calloc calls, keeping track   
of all alocations, and can report about pointers not freed, or not used   
correctly.
It's very old, came from DDJ 1990 I think, and I adapted it to DJGPP.

Similair tools can be found from this period.

You simply add a few lines to your code to link in the extra code. When   
compiling your production version, simply leave out a #define to skip   
this code.

If you're interested, give me call, and I'll post it to you.

bibi
Rob den Boer

- Raw text -


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