> I am trying to use a subclass of RTSPClient and it has a static variable for
> the scheduler and environment
You don't need to do this. Each subclass of "Medium" (which includes
"RTSPClient") has a member function
envir()
which returns its "UsageEnvironment". And "UsageEnvironment" has a member
function
taskScheduler()
which returns its "TaskScheduler".
So you shouldn't need to add any fields for these.
Note that - each time you create a "TaskScheduler"/"UsageEnvironment" pair -
you first create the "TaskScheduler"; then you create a "UsageEnvironment" that
uses it. (Note the numerous examples in "testProgs".)
Therefore, when deleting these objects, you should do so in reverse order:
- First call "reclaim()" on the "UsageEnvironment" object
- Then "delete" the "TaskScheduler" object.
(Yes, this is rather ugly and inconsistent...)
Ross.
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel