[speex-dev] memory

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Mon May 17 19:34:48 PDT 2004



Make sure you are using the last version (try both 1.0.3 and 1.1.5 if possible).
Also, how can you say the increase is caused by Speex? Did you use a memory
profiling tool (like valgrind)? If so it would help to look at the line causing
the leak. Also, note that Speex only allocates a couple kB each time, so even if
you don't destroy anything, the leak would still be relatively small.

   Jean-Marc

Quoting Gabriel Viganotti <gabrielviganotti at hotmail.com>:

> hi!
> I'm using the speex library in my RTP project (i'm using GNU ccRTP library).
> 
> My program creates and destroys speex objects everytime a new RTP connection
> 
> is made. But, when i test it with a client which create a connection to it 
> one after another, the free memory decrease constantly to the point where 
> the programs execution crash because not more free memory. It seems like the
> 
> library is no freeing all the resources it uses. (I'm calling the 
> speex_encoder_destroy and speex_decoder_destroy functions after every RTP 
> session is finished).
> 
> I'll apreciate a lot your help, thanks a lot!!
> 
> 
> Gabriel
> 
> _________________________________________________________________
> MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/
> 
> --- >8 ----
> List archives:  http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to
> 'speex-dev-request at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
> 
> 

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Speex-dev mailing list