Re: [Live-devel] Enumerate all 'clients' and memory leak

2012-09-20 Thread Ross Finlayson
>> 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

Re: [Live-devel] Enumerate all 'clients' and memory leak

2012-09-20 Thread Matt Schuckmann
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

Re: [Live-devel] Enumerate all 'clients' and memory leak

2012-09-20 Thread ЗвягинцевАнтон
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

Re: [Live-devel] Enumerate all 'clients' and memory leak

2012-09-20 Thread Ross Finlayson
> 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

Re: [Live-devel] Enumerate all 'clients' and memory leak

2012-09-20 Thread Ross Finlayson
>> 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

Re: [Live-devel] Enumerate all 'clients' and memory leak

2012-09-20 Thread ЗвягинцевАнтон
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

Re: [Live-devel] Enumerate all 'clients' and memory leak

2012-09-20 Thread Ross Finlayson
> 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

[Live-devel] Enumerate all 'clients' and memory leak

2012-09-20 Thread Звягинцев Антон
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.