<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=903253713-20092006>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=903253713-20092006></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=903253713-20092006><FONT face=Arial size=2>I am working
with Tremor (</FONT><FONT size=2><FONT face=Arial>codec<SPAN
class=903253713-20092006> </SPAN>source as of date 2002 09 02, version
1.0.0</FONT><FONT face=Arial>) on a Blackfin DSP. Basically my implementaion
works but there remains a problem with memory leaks. If I playback an OggVorbis
File several times (were I always call ov_open_callbacks(),..., ov_read(),
ov_clear() similar to the example code), it ends up in a DSP-exception because
of a heap overflow.</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=903253713-20092006><FONT face=Arial
size=2></FONT></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=903253713-20092006><FONT face=Arial size=2>I found some
hints in the Tremor forum that there exists a memory leak problem. Is that
correct or could it be that I do a wrong usage of the API-functions
(e.g. ov_clear())? </FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=903253713-20092006></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=903253713-20092006><FONT face=Arial size=2>I am planing
to do a work-around by implementing a list, were each pointer allocated by
malloc(), calloc(), realloc() is written to. Every free() (and if neccessary
every realloc() ) would clear the corresponding pointer in the list. Finally
after having finished an OggVorbis stream, I would do a free() on each pointer
remaining after ov_clear() to clean up the heap.</FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=903253713-20092006></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=903253713-20092006><FONT face=Arial size=2>My question
now is: Does enyone have suggestions for a better work-around or does a newer
version of Tremor exist, which overcomes the</FONT> <FONT face=Arial
size=2>memory leak problem?</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=903253713-20092006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=903253713-20092006>Thank you and best
regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=903253713-20092006>Markus</SPAN></FONT></DIV></BODY></HTML>