Home
Reply
Visitor
Posts: 1
0

memory leak in using interop

[ Edited ]
 

When we test the sample code in the interop r19 sp3, we run the example Simple_Mbcs_vc8, but when we add following memory leak detection code, the visual studio report there are huge memory leak in the example.

--------------------------------------------------​-----------------------------------------------

#include <crtdbg.h>

 

// add memory dump before the main()  "return result;"

_CrtDumpMemoryLeaks();

--------------------------------------------------​-----------------------------------------------

 

Now, we have question, whether the interop really has memory leak (or the visual studio report the fake message - the interop use late-memory release technique to release memory after the application end).

 

If no leak, how to avoid visual studio to report the fake message (we still need this code to detect the memory leak for our application)

 

 

Thanks in advance.

Super Contributor
Posts: 236
0

Re: memory leak in using interop