Mail Archives: djgpp/1997/06/25/03:06:36
>As you may or may not know, I have a game in development. But as of
>I've been having a nasty problem with memory loss... Every time I load
>animation or a map file that the game uses I lose somewhere between
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
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
If you're interested, give me call, and I'll post it to you.
Rob den Boer
- Raw text -