Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CWinApp: dbgheap.c error (debug)

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hello.

I'm trying to create a DLL by using VC++ 6.0 on
Windows NT4.0+SP6a.

When trying to execute my DLL (Debug), I get this
error message:

Debug Assertion Failed!
program xxxx.exe
File: dbgheap.c
Line: 1011
Expression: _CrtlsValidHeapPointer(pUserData)

I've been browsing Microsoft's site (Q154744), and this
is the likely cause:

The CWinApp destructor in MFC included with Visual C++ 4.2 and later now frees
the data assigned to the member variables shown above by passing the pointer to
the free() function. Doing this prevents memory leaks, which would occur if an
MFC regular DLL were dynamically loaded and unloaded.

I've been suffering memory problems with the release DLL
(my customers notice that it wastes a lot of memory).

Does anybody have any experience?

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top