Solved

Unicode build - Memory leaks

Posted on 2002-04-16
1
1,370 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now