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.
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar
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.
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.