Solved

Unicode build - Memory leaks

Posted on 2002-04-16
1
1,402 Views
Last Modified: 2013-11-20
I have an C++(MFC) application built in non-unicode that tries to load a DLL(with MFC support). The
DLL has been compiled in UNICODE.
When I load the library and unload it I seem to get the meory leaks.

Detected memory leaks!
Dumping objects ->
{68} client block at 0x01F51730, subtype 0, 68 bytes long.
a CDynLinkLibrary object at $01F51730, 68 bytes long
a CDynLinkLibrary object at $01F51730, 68 bytes long
{63} client block at 0x01F515E0, subtype 0, 68 bytes long.
a CDynLinkLibrary object at $01F515E0, 68 bytes long
a CDynLinkLibrary object at $01F515E0, 68 bytes long
{61} client block at 0x01F514C0, subtype 0, 68 bytes long.
a CDynLinkLibrary object at $01F514C0, 68 bytes long
a CDynLinkLibrary object at $01F514C0, 68 bytes long
Object dump complete.


However if I remove the UNICODE support( by removing _UNICODE, UNICODE from pre processor definition)
for my DLL the memory leaks seems to go off.


Is there any suggestion on how to remove the memory leak. Can I use any APIs to clean up the memory
if I use UNICODE. For circumstances I cannot remove the UNICODE support for the DLL (or) add
UNICODE support for my Exe application.
0
Comment
Question by:vsaravana
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 6945793
Check http://support.microsoft.com/default.aspx?scid=kb;EN-US;q167929 ("PRB: Memory Leaks Reported When Using Multiple MFC DLLs (Q167929)")
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how do i create updater to My Activex application? 3 94
sum13 challenge 24 121
Execute multiple curl cmds with sleep and send output to file 10 104
Problem to event 3 102
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question