Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Unicode build - Memory leaks

Posted on 2002-04-16
1
Medium Priority
?
1,451 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 400 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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

610 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