Microsoft KB Archive/320449

= DHTML Edit Control Leaks Memory When It Is Repeatedly Created and Destroyed =

Article ID: 320449

Article Last Modified on 11/15/2007

-

APPLIES TO


 * Microsoft Internet Explorer (Programming)

-



This article was previously published under Q320449



SYMPTOMS
A program that repeatedly creates the DHTML Editing Control and uses the NewDocument method or DocumentHTML property may leak up to 64 kilobytes (KB) after the program releases the object.



CAUSE
The leak occurs in the hosting site for the document during the activation process. The site AddRefs the view and then stores it, and this view pointer is supposed to be released in when the site is closed. The leak occurs because different view pointers are stored multiple times during the activation process, and each time a different view pointer is passed in it causes the site to AddRef the new pointer and overwrite the old pointer.



RESOLUTION
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

The English version of this fix should have the following file attributes or later:

  Date         Time      Version     Size     File name ---  24-Apr-2002  12:51 PM  6.1.0.9200  116,224  Dhtmled.ocx

The Dhtmled.ocx file was modified to release any existing view pointers when a new one is stored.



WORKAROUND
You can avoid the leak by using the MSHTML control instead of the DHTML Edit Control.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbhotfixserver kbqfe kbbug kbenv kbfix kbqfe KB320449

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.