From: "Mike Winsor" Newsgroups: comp.os.msdos.djgpp Subject: Re: Memory Eater.... Date: 27 Jun 1997 22:29:15 GMT Organization: Memorial University of Newfoundland Lines: 43 Message-ID: <01bc8349$8c2f69a0$5514a8c0@j.downey.gnat.thezone.net> References: <9706250705 DOT AA08342 AT sun4nl DOT NL DOT net> NNTP-Posting-Host: gnat.thezone.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Sure... I'll give anything a shot right now... just attach it to your e-mail. Thanx in advance... Mike -- E-Mail me at: mwinsor AT hotmail DOT com Check out my game in development: http://www.canvaslink.com/tapeworm Rob den Boer wrote in article <9706250705 DOT AA08342 AT sun4nl DOT NL DOT net>... > > > > >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 >