>> But the best/easiest way to reclaim all of the memory for all of the
> LIVE555-allocated objects is simply to call "exit(0)" - i.e., by exiting the
> entire process. (But I forget - this is the 21st century. For some odd
> reason,
> software developers now have forgotten how to structure thei
In the 21s century people use things like smart pointers and the STL
and memory leaks rarely occur.
Matt S.
On Thursday, September 20, 2012 6:55:36 AM, ЗвягинцевАнтон wrote:
Ross Finlayson writes:
But the best/easiest way to reclaim all of the memory for all of the
LIVE555-allocated objec
Ross Finlayson writes:
>
> But the best/easiest way to reclaim all of the memory for all of the
LIVE555-allocated objects is simply to call "exit(0)" - i.e., by exiting the
entire process. (But I forget - this is the 21st century. For some odd reason,
software developers now have forgotten how
> And one more question, in the samples and the library itself many places in
> the
> code looks like this:
>
> RTSPClient* rtspClient = ourRTSPClient::createNew(env, rtspURL,
> RTSP_CLIENT_VERBOSITY_LEVEL, progName);
>
> if (rtspClient == NULL) {
>
> createNew() just a wrapper over the stand
>> My ptable pointer allocated in MediaLookupTable::ourMedia but never deleted
>> No, that's incorrect - it *will* get deleted, if/when all "Medium" objects
>> end
> up getting deleted (so there's no memory leak here).
>
> Both VLD (visual leak detector) and ms crt debug runtime reports leaks in
Ross Finlayson writes:
> My ptable pointer allocated in MediaLookupTable::ourMedia but never deleted
> No, that's incorrect - it *will* get deleted, if/when all "Medium" objects end
up getting deleted (so there's no memory leak here).
Both VLD (visual leak detector) and ms crt debug runtime rep
> My ptable pointer allocated in MediaLookupTable::ourMedia but never deleted
No, that's incorrect - it *will* get deleted, if/when all "Medium" objects end
up getting deleted (so there's no memory leak here).
Out of curiosity, though: Why do you want to "enumerate all RTSPClients"?
Ross Finla
Hello.
As far as I understand live555 keep track the created 'objects' in internal
containers so my guess was it is possible to iterate over that containers.
What I need is to enumerate all rtspclients. According to this comment
// A data structure for looking up a Medium by its string name.