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
>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 -