<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I wrote a video client that at one point needs to
shut down all incoming mpeg4 streams and delete usage environent </FONT></DIV>
<DIV><FONT face=Arial size=2>and task scheduler. </FONT></DIV>
<DIV><FONT face=Arial size=2>After that it needs to allocate new set of
RTSPClient and start streaming all over again.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The only way I managed to get task scheduler to
work after the first set of streams is shut downed is</FONT></DIV>
<DIV><FONT face=Arial size=2>by deleting the task scheduler and usage
environent. For some reason if I don't create new task scheduler and
env</FONT></DIV>
<DIV><FONT face=Arial size=2>the loop gets stuck and no frames are
streaming.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But now there is a problem where I use:
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> usageEnvironment->reclaim();</FONT></DIV>
<DIV><FONT face=Arial size=2> delete scheduler;</FONT></DIV>
<DIV><FONT face=Arial size=2> scheduler = NULL;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> scheduler =
BasicTaskScheduler::createNew();</FONT></DIV>
<DIV><FONT face=Arial size=2> usageEnvironent =
BasicUsageEnvironment::createNew(*scheduler);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>after starting event loop there's a 12kb leak which
is not dealocated with reclaim.</FONT></DIV>
<DIV><FONT face=Arial size=2>So I guess I did something wrong here. Can someone
point me where?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Also, why can't I use the same task scheduler after
I shutdowned all active streams?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV><BR />
<BR />
<HR />
ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)<BR />
Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)<BR />
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 )<BR />
<BR />
Www:<BR />
www.elma.hr; shop.elma.hr<BR />
<BR />
E-mail:<BR />
elma@elma.hr (elma@elma.hr)<BR />
pitanje@elma.hr (questions@elma.hr)<BR />
primjedbe@elma.hr (complaints@elma.hr)<BR />
prodaja@elma.hr (sales@elma.hr)<BR />
servis@elma.hr (servicing@elma.hr)<BR />
shop@elma.hr (shop@elma.hr)<BR />
skladiste@elma.hr (warehouse@elma.hr)<BR />
</BODY></HTML>