<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<STRONG>Hello:</STRONG><BR>
<STRONG></STRONG> <BR>
<STRONG> At first, Thanks to Ross for help on "mepg4-latm".</STRONG><BR>
<STRONG> Here is another trouble, I made a vs2005 project,which include<BR>some files of live555. In the main() function in file main.c , I copied <BR>code in main() function in playCommon.c of live555. Building,Running </STRONG><BR>
<STRONG>successfully. The program receive streams and save data<BR>in file. But at last I found that there is an important issue: memory </STRONG><BR>
<STRONG>meak.<BR> <BR>A memory leak detection tool called "vld" output these messages when I </STRONG><BR>
<STRONG>debug:<BR>-------------------------------------------<BR><FONT color=#808080>BasicTaskScheduler0::scheduleDelayedTask<BR>...<BR>basicusageenvironment.cpp (48): BasicUsageEnvironment::createNew<BR>...<BR>basictaskscheduler0.cpp (51): BasicTaskScheduler0::BasicTaskScheduler0<BR>...<BR>basictaskscheduler.cpp (34): BasicTaskScheduler::createNew<BR>...</FONT><BR>-------------------------------------------<BR>So there exists 4 memory leaks .</STRONG><BR>
<STRONG>I searched all files of live555, found nowhere to delete the pointer of BasicTaskScheduler instance, include </STRONG><STRONG>playcommon.c . I don't know whether I should delete it myself.<BR>But the destructor of class "BasicUsageEnvironment" is declared in<BR>protected field and cannot accessed by "delete". Should I move it to<BR>public field? Actually I've tried but memory leaks still exist.<BR></STRONG><STRONG></STRONG><BR><br /><hr />使用新一代 Windows Live Messenger 轻松交流和共享! <a href='http://www.windowslive.cn' target='_new'>立刻下载!</a></body>
</html>