I am writing one cisco CTIOS aaplication. I am using STLPort in that aaplication. In my code I am getting too many memory leaks in below line.
std::string s = rArguments.DumpArgs();
When I am using the above line in my piece of code in TaskManager it is showing too many handles. After two to three days of my application start, it is getting crashed. If I commented this line I am able to run the application for more days.
This rArguments::DumpArgs() simply print the arguments in to one text file. I am not allocating any memory for that.
You probably are allocating memory, but perhaps not manually, and memory is not the only resource. Show the definition of the DumpArgs() member function, along with the relevant parts of the class definition.
Actually this function is defined in CTIOS libraries.
Right, so you are caught between a standard library implementation and a domain specific library. A quick search brings up STLport string 'leaking'. If the suggestion does not solve your problem then you might want to either switch to a different standard library implementation, or request for help from the STLport implementers.