DHTML Edit Control Leaks Memory When It Is Repeatedly Created and Destroyed (320449)
The information in this article 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.
RESOLUTIONA supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may 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 immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site: NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
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.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 10/11/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbbug kbenv kbfix kbQFE KB320449 kbAudDeveloper |
---|
|