Memory leak occurs when you host ActiveX controls with MFC (835697)



The information in this article applies to:

  • Microsoft Windows CE .NET 4.2

SYMPTOMS

After an application repeatedly creates and destroys ActiveX controls over time, you receive out-of-memory messages from application function calls.

CAUSE

When you create ActiveX controls by using Microsoft Foundation Classes (MFC), a small memory leak occurs.

RESOLUTION

Software update information

A supported software update is now available from Microsoft as Windows CE 4.2 Core OS QFE 835697. To resolve this problem immediately, click the following article number for information about obtaining Windows CE Platform Builder and core operating system software updates:

837392 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you install this update, you must perform a clean build of the whole platform. To clean the platform, click Clean on the Build menu. To build the platform, click Build Platform on the Build menu. You do not have to restart your computer after you apply this update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this package has the file attributes (or later) that are listed in the following table.
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   11-Jun-2004  02:14  4.2.4.611       2,317,048  Wincepb42-040611-kb835697-armv4.exe
   11-Jun-2004  02:15  4.2.4.611       2,317,048  Wincepb42-040611-kb835697-armv4i.exe
   11-Jun-2004  02:14  4.2.4.611       2,411,256  Wincepb42-040611-kb835697-mipsii.exe
   11-Jun-2004  02:14  4.2.4.611       2,423,544  Wincepb42-040611-kb835697-mipsii_fp.exe
   11-Jun-2004  02:15  4.2.4.611       2,476,792  Wincepb42-040611-kb835697-mipsiv.exe
   11-Jun-2004  02:15  4.2.4.611       2,484,984  Wincepb42-040611-kb835697-mipsiv_fp.exe
   11-Jun-2004  02:14  4.2.4.611       2,308,856  Wincepb42-040611-kb835697-sh3.exe
   11-Jun-2004  02:15  4.2.4.611       2,321,144  Wincepb42-040611-kb835697-sh4.exe
   11-Jun-2004  02:15  4.2.4.611       2,190,072  Wincepb42-040611-kb835697-x86.exe
The English version of this update has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

   Date         Time   Version            Size    File name
   --------------------------------------------------------------

   Path: OTHERS\mfc\lib\armv4
   28-Apr-2004  18:39  6.0.712.1580      271,872  Olece400.dll     
   28-Apr-2004  18:38                    600,600  Olece400.lib
   28-Apr-2004  18:38                  2,281,472  Olece400.pdb
   28-Apr-2004  18:38                    165,145  Olece400.rel
   28-Apr-2004  19:02  6.0.712.1580      632,320  Olece400d.dll
   28-Apr-2004  19:02                    685,926  Olece400d.lib
   28-Apr-2004  19:02                  2,625,536  Olece400d.pdb
   28-Apr-2004  19:02                    200,235  Olece400d.rel

   Path: OTHERS\mfc\lib\armv4i
   28-Apr-2004  18:41  6.0.712.1580      282,624  Olece400.dll
   28-Apr-2004  18:41                    600,600  Olece400.lib
   28-Apr-2004  18:41                  2,281,472  Olece400.pdb
   28-Apr-2004  18:41                    165,145  Olece400.rel
   28-Apr-2004  19:04  6.0.712.1580      642,048  Olece400d.dll
   28-Apr-2004  19:04                    685,926  Olece400d.lib
   28-Apr-2004  19:04                  2,625,536  Olece400d.pdb
   28-Apr-2004  19:04                    200,235  Olece400d.rel

   Path: OTHERS\mfc\lib\mipsii
   28-Apr-2004  18:44  6.0.712.1580      346,624  Olece400.dll
   28-Apr-2004  18:43                    598,278  Olece400.lib
   28-Apr-2004  18:43                  2,191,360  Olece400.pdb
   28-Apr-2004  18:43                    391,751  Olece400.rel
   28-Apr-2004  19:06  6.0.712.1580      705,536  Olece400d.dll
   28-Apr-2004  19:05                    685,748  Olece400d.lib
   28-Apr-2004  19:05                  2,666,496  Olece400d.pdb
   28-Apr-2004  19:05                    623,142  Olece400d.rel

   Path: OTHERS\mfc\lib\mipsii_fp
   28-Apr-2004  18:46  6.0.712.1580      347,136  Olece400.dll     
   28-Apr-2004  18:46                    599,620  Olece400.lib
   28-Apr-2004  18:46                  2,199,552  Olece400.pdb
   28-Apr-2004  18:46                    390,359  Olece400.rel
   28-Apr-2004  19:07  6.0.712.1580      709,632  Olece400d.dll
   28-Apr-2004  19:07                    693,540  Olece400d.lib
   28-Apr-2004  19:07                  2,666,496  Olece400d.pdb
   28-Apr-2004  19:07                    624,650  Olece400d.rel

   Path: OTHERS\mfc\lib\mipsiv
   28-Apr-2004  18:49  6.0.712.1580      379,904  Olece400.dll
   28-Apr-2004  18:48                    598,278  Olece400.lib
   28-Apr-2004  18:48                  2,330,624  Olece400.pdb
   28-Apr-2004  18:48                    444,560  Olece400.rel
   28-Apr-2004  19:09  6.0.712.1580      734,720  Olece400d.dll    
   28-Apr-2004  19:09                    685,748  Olece400d.lib
   28-Apr-2004  19:09                  2,666,496  Olece400d.pdb
   28-Apr-2004  19:09                    628,333  Olece400d.rel

   Path: OTHERS\mfc\lib\mipsiv_fp
   28-Apr-2004  18:51  6.0.712.1580      380,928  Olece400.dll
   28-Apr-2004  18:51                    599,606  Olece400.lib
   28-Apr-2004  18:51                  2,330,624  Olece400.pdb
   28-Apr-2004  18:51                    441,776  Olece400.rel
   28-Apr-2004  19:11  6.0.712.1580      738,304  Olece400d.dll
   28-Apr-2004  19:11                    691,652  Olece400d.lib
   28-Apr-2004  19:11                  2,666,496  Olece400d.pdb
   28-Apr-2004  19:11                    626,332  Olece400d.rel

   Path: OTHERS\mfc\lib\sh3
   28-Apr-2004  18:54  6.0.712.1580      229,376  Olece400.dll
   28-Apr-2004  18:53                    599,760  Olece400.lib
   28-Apr-2004  18:53                  2,150,400  Olece400.pdb
   28-Apr-2004  18:53                    228,249  Olece400.rel
   28-Apr-2004  19:13  6.0.712.1580      553,472  Olece400d.dll
   28-Apr-2004  19:12                    685,382  Olece400d.lib
   28-Apr-2004  19:13                  2,617,344  Olece400d.pdb
   28-Apr-2004  19:13                    337,521  Olece400d.rel

   Path: OTHERS\mfc\lib\sh4
   28-Apr-2004  18:56  6.0.712.1580      229,888  Olece400.dll
   28-Apr-2004  18:56                    601,414  Olece400.lib
   28-Apr-2004  18:56                  2,150,400  Olece400.pdb
   28-Apr-2004  18:56                    225,755  Olece400.rel
   28-Apr-2004  19:14  6.0.712.1580      556,544  Olece400d.dll
   28-Apr-2004  19:14                    693,476  Olece400d.lib
   28-Apr-2004  19:14                  2,617,344  Olece400d.pdb
   28-Apr-2004  19:14                    335,578  Olece400d.rel

   Path: OTHERS\mfc\lib\x86
   28-Apr-2004  18:58  6.0.712.1580      179,200  Olece400.dll
   28-Apr-2004  18:58                    597,590  Olece400.lib
   28-Apr-2004  18:58                  2,084,864  Olece400.pdb
   28-Apr-2004  18:58                    120,427  Olece400.rel
   28-Apr-2004  19:16  6.0.712.1580      468,992  Olece400d.dll    
   28-Apr-2004  19:16                    685,382  Olece400d.lib
   28-Apr-2004  19:16                  2,535,424  Olece400d.pdb
   28-Apr-2004  19:16                    183,734  Olece400d.rel

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MinorLast Reviewed:5/27/2005
Keywords:kbBug kbfix kbQFE KB835697 kbAudDeveloper