- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
memory leak in using interop
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-15-2012
12:58 AM
- last edited on
03-14-2012
08:32 AM
by
ybiyani
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.
Re: memory leak in using interop
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-15-2012 05:52 AM

