Tracking memory leaks in SDL

I was wondering what the SDL community use to track memory leaks?
I was using a system of macros that tracked where the leak occured and how
much. When I installed SDL I had to remove this from my engine as it wasn’t
compatible. Now I think those leaks are starting to come back. Has anyone
got any suggestions fro a system that is compatible with SDL?_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

“David Moffatt” <david_moffatt at hotmail.com> wrote:

I was wondering what the SDL community use to track memory leaks?

discipline :slight_smile:

Has anyone
got any suggestions fro a system that is compatible with SDL?

To my knowledge, SDL does not prevent any standard memory tool from
working, so you can use whatever you like. Stuff like Purify is great
if you can afford it

“David Moffatt” <david_moffatt at hotmail.com> wrote in message
news:mailman.1010656324.30492.sdl at libsdl.org

I was wondering what the SDL community use to track memory leaks?
I was using a system of macros that tracked where the leak occured and how
much. When I installed SDL I had to remove this from my engine as it
wasn’t
compatible. Now I think those leaks are starting to come back. Has anyone
got any suggestions fro a system that is compatible with SDL?

I use smart pointers to prevent memory leaks from happening in the first
place.–
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor

Try Paul Nettle’s memory manager.
Go to this site and grab the thing. It’s wonderful!

http://www.fluidstudios.com/publications.html--
Alexander Bierbrauer

Coder & Coordinator of polyfrag
eMail: @Alexander_Bierbrauer
Web: http://www.polyfrag.com

~v^[running Linux Mandrake 8.1]^v~

David Moffatt wrote:

I was wondering what the SDL community use to track memory leaks?
I was using a system of macros that tracked where the leak occured and how
much. When I installed SDL I had to remove this from my engine as it wasn’t
compatible. Now I think those leaks are starting to come back. Has anyone
got any suggestions fro a system that is compatible with SDL?

Not sure what is used by SDL developers, but I would recomend:

mpatrol - a lot of options, but relatively complicated.
electric-fence - doesn’t work with threads, but it is very easy to use.

kabi