Solved

Unicode build - Memory leaks

Posted on 2002-04-16
1
1,432 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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