[SDL] ot - memory leaks

neil at cloudsprinter.com neil at cloudsprinter.com
Thu Aug 2 09:18:37 PDT 2007


>> > the only thing letting it down now is memory leaks, ive been poking
>> > around a bit
>> > on google, but all articles i can find on the subject are a bit vauge..
>> > if
>> > someone can point me to a good resource about what will cause a memory
>> > leak and
>> > what needs doing where and when to prevent them i would appreciate it.
>>
>>
>> Run valgrind on your application ( http://valgrind.org/).
>> However, I always (even on almost empty application) have some SDL-related
>> valgrind errors.
>> Like the one when setting video mode.
>>
>
>
> what about Windows programmers ?
>

i compiled my code on linux and ran it through valgrind to discover 
just how bas
it was, i did notice some things that looked like it was sdl, so that 
helps if i
know sdl may be doing some of the leaks, but all that stuff valgrind 
pumps into
the cose.. i still dont know exactly what i need to do to sort it or how ;)
i tried the odd free(); here and there, but i jst got error messages.

as for windows ( i cuurently use windows while i dont bother sorting 
linux out (
new monitor arrives soon all will be sweet )) i did poke around for a valgrind
like thing breifly but all i saw were some commercial shoddyness that probably
didnt really do what you wanted.


would there be some kinda valgrind windows cygwin combination or is that just
too wierd and crazy?



More information about the SDL mailing list