[SDL] [SPAM] Re: Memory Leak
Pankaj
panky_13210 at yahoo.com
Thu Apr 26 07:49:02 PDT 2007
I am sure about them as memory leaks because if i run the application again and again then i am able notice with task manager that the memory application is usinng increases by 1 MB and i never get it back . When we run the same application again and again in the real device then also it dries down due to lack of memory.
thanks,
Pankaj
----- Original Message ----
From: Gabriele Greco <gabriele.greco at darts.it>
To: A list for developers using the SDL library. (includes SDL-announce) <sdl at lists.libsdl.org>
Sent: Thursday, 26 April, 2007 6:08:35 AM
Subject: Re: [SDL] [SPAM] Re: Memory Leak
Pankaj wrote:
> There is one problem i am using the SDL library ( a dll ) in which everything is built in so i do not have a choice of chosing a function . Moreover , functions like SDL_OpenAudio are giving me huge memory leaks. It seems that if i run the applicaiton once and just decode a 3 minute tralior i am getting about 1MB of leaks which is unimaginable, all i am doing is using the ffmpeg library. Though i am using Rational Purify to check for the leaks but it only points to some functions like SDL_OpenAudio() othersiwe it just gives me some potetial leaks in AVCODEC library .
>
Are you sure these are leaks and not buffered datas?
I know that avcodec internally keeps some static buffers for a lot of
stuff, OpenAudio creates a thread and inits one or more audio buffers
that are released only by SDL_QuitSubsystem() or SDL_Quit(), one MB
seems fair as buffering for audio/video in mpeg decoding.
If you decode for 6 minutes you have 2mb of leaks, if it doesn't grow
with time you cannot be sure it's a leak. Leak detection programs like
valgrind or the Rational Purify you are using are mostly useful to check
your code, it's very difficult to use them to check code you didn't know.
--
Bye,
Gabry
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Add online presence to your web pages, find out how here - http://messenger.yahoo.com/addpresence.php
More information about the SDL
mailing list