[Live-devel] Regarding testOndemandRtspserver test app....
Ross Finlayson
finlayson at live555.com
Thu Dec 26 18:50:19 PST 2013
> I am using testOnDemandRtspServer application and at the end i wand to delete
> the objects of TaskScheduler and UsageEnvironment,but these classes have protected destructor.so how can i free memory for these classes.
The simplest way to do this is to simply call
exit(0);
to exit the process.
But if (for some reason) you don't want to do this, you can reclaim these objects (of course, after you've reclaimed the server object itself) by doing:
env->reclaim(); env = NULL;
delete scheduler; scheduler = NULL;
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20131226/60871994/attachment.html>
More information about the live-devel
mailing list