CInternetException not disposed automatically
Posted on 2014-09-04
I have written a piece of code, that is calling a URL and storing the input in a CString. All this is done inside a try-catch(...) block.
When checking for memory leaks I have noticed, that CInternetException objects were remaining in memory. So I had to modify the catch to
catch (CInternetException *e)
I don't understand why this is necessary. Is there anything special about the CInternetSession and CHttpConnection objects, so that the undefined catch is not disposing the exception objects automatically?
Thanks in advance!