PRB: Memory Leak in 32-bit DDEMLArticle ID: Q153915Creation Date: 24-JUL-1996 Revision Date: 18-OCT-1996
The information in this article applies to:
- Microsoft Windows NT, version 3.51
SYMPTOMS There is a small memory leak associated with calling the 32-bit DDEML function pair DdeCreateDataHandle / DdeFreeDataHandle. This leak is minor, and is noticeable only after hundreds of calls to these functions. Most applications that use 32-bit DDEML should not be affected by this leak. However, if DdeCreateDataHandle / DdeFreeDataHandle is called enough times, this leak will eventually exhaust the application's working set and cause further calls to DdeCreateDataHandle to fail.
RESOLUTION The solution to this problem is to use messaging DDE instead of DDEML. For documentation on how to do this, see the Overview: Dynamic Data Exchange in the Win 32 Software Development Kit Help file.
STATUS This problem has been fixed in Windows NT 4.0.
MORE INFORMATION This leak can be best viewed with PERFMON.EXE, a performance monitoring utility that ships with Windows NT. To see the leak, do the following:
|
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.