[SDL] SDL memory leak?
Koshmaar
koshmaar at poczta.onet.pl
Sun Dec 4 08:33:30 PST 2005
> Hi, I 'm relatively new with SDL, working with it for a few weeks. I am
> creating some kind of game and using SDL for video rendering. However
> while debugging my application I've noticed that my memory usage was
> constantly increasing in a steady pace of about 20K/sec. The following
> test performed while having a scene of 19 objects without any animation
> at all. Just a while (1) loop that keeps checking & rendering dirty
> (invalidated) rectangles (none in this case, no animation).
>
> First I thought I had a memory leak but after some extensive debugging
> I've come to believe that I don't and realized, surprisingly, that the
> memory was increasing when entering one of the following function
> SDL_BlitSurface() and SDL_UpdateRect(), (couldn't determine which
> exactly). My developing platform is WinXP and I've noticed that mem leak
> in the debug version of my application (haven't tried release version yet).
>
> I'd like to ask if this is a known issue or having heard anything
> similar before.
>
> Thank you,
> Themis
Most likely (99,999%) there's a memory leak in your own code, so post it
here so that we can tell you where it is.
Koshmaar
More information about the SDL
mailing list