Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: A memory leak may occur when a custom user control in Silverlight is created and removed in Windows Embedded Compact 7


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You run an application in Windows Embedded Compact 7.
  • The application creates an instance of a custom user control in Silverlight for Windows Embedded.
  • You change the visual state of the user control.
  • You remove the user control.

In this scenario, a memory leak occurs. When this issue occurs for some time, the system may run out of memory.

Notes
  • The visual state is the way the user control appears in a particular state.
  • You can attach the Resource Leak Detector tool to the application to detect the memory leak.

↑ Back to the top


Resolution

Software update information

A supported software update is now available from Microsoft as Windows Embedded Compact 7 Monthly Update December 2011. In the "File information" section, the package file name contains the processor type.

Note This Windows Embedded Compact 7 Monthly Update is available for download from the following Microsoft Download Center website:

Prerequisites

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

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes (or later file attributes) 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 item in Control Panel.

Files that are included in this update package
File nameFile sizeDateTimePath
Xamlruntimecore.def2,08101-Dec-201114:09Public\Common\Oak\Lib\Armv5\Checked
Xamlruntimecore.lib53,74801-Dec-201114:09Public\Common\Oak\Lib\Armv5\Checked
Xamlruntimecore.def2,08101-Dec-201114:07Public\Common\Oak\Lib\Armv5\Debug
Xamlruntimecore.lib53,74801-Dec-201114:07Public\Common\Oak\Lib\Armv5\Debug
Xamlruntimecore.def2,08101-Dec-201114:05Public\Common\Oak\Lib\Armv5\Retail
Xamlruntimecore.lib53,74801-Dec-201114:05Public\Common\Oak\Lib\Armv5\Retail
Xamlruntimecore.def2,08101-Dec-201114:28Public\Common\Oak\Lib\Armv6\Checked
Xamlruntimecore.lib53,74801-Dec-201114:28Public\Common\Oak\Lib\Armv6\Checked
Xamlruntimecore.def2,08101-Dec-201114:26Public\Common\Oak\Lib\Armv6\Debug
Xamlruntimecore.lib53,74801-Dec-201114:26Public\Common\Oak\Lib\Armv6\Debug
Xamlruntimecore.def2,08101-Dec-201114:25Public\Common\Oak\Lib\Armv6\Retail
Xamlruntimecore.lib53,74801-Dec-201114:25Public\Common\Oak\Lib\Armv6\Retail
Xamlruntimecore.def2,08101-Dec-201114:48Public\Common\Oak\Lib\Armv7\Checked
Xamlruntimecore.lib53,74801-Dec-201114:48Public\Common\Oak\Lib\Armv7\Checked
Xamlruntimecore.def2,08101-Dec-201114:46Public\Common\Oak\Lib\Armv7\Debug
Xamlruntimecore.lib53,74801-Dec-201114:46Public\Common\Oak\Lib\Armv7\Debug
Xamlruntimecore.def2,08101-Dec-201114:44Public\Common\Oak\Lib\Armv7\Retail
Xamlruntimecore.lib53,74801-Dec-201114:44Public\Common\Oak\Lib\Armv7\Retail
Xamlruntimecore.def2,08101-Dec-201115:06Public\Common\Oak\Lib\Mipsii\Checked
Xamlruntimecore.lib53,74801-Dec-201115:06Public\Common\Oak\Lib\Mipsii\Checked
Xamlruntimecore.def2,08101-Dec-201115:04Public\Common\Oak\Lib\Mipsii\Debug
Xamlruntimecore.lib53,74801-Dec-201115:04Public\Common\Oak\Lib\Mipsii\Debug
Xamlruntimecore.def2,08101-Dec-201115:02Public\Common\Oak\Lib\Mipsii\Retail
Xamlruntimecore.lib53,74801-Dec-201115:02Public\Common\Oak\Lib\Mipsii\Retail
Xamlruntimecore.def2,08101-Dec-201115:24Public\Common\Oak\Lib\Mipsii_fp\Checked
Xamlruntimecore.lib53,74801-Dec-201115:24Public\Common\Oak\Lib\Mipsii_fp\Checked
Xamlruntimecore.def2,08101-Dec-201115:22Public\Common\Oak\Lib\Mipsii_fp\Debug
Xamlruntimecore.lib53,74801-Dec-201115:22Public\Common\Oak\Lib\Mipsii_fp\Debug
Xamlruntimecore.def2,08101-Dec-201115:20Public\Common\Oak\Lib\Mipsii_fp\Retail
Xamlruntimecore.lib53,74801-Dec-201115:20Public\Common\Oak\Lib\Mipsii_fp\Retail
Xamlruntimecore.def2,08101-Dec-201115:41Public\Common\Oak\Lib\Sh4\Checked
Xamlruntimecore.lib54,04001-Dec-201115:41Public\Common\Oak\Lib\Sh4\Checked
Xamlruntimecore.def2,08101-Dec-201115:40Public\Common\Oak\Lib\Sh4\Debug
Xamlruntimecore.lib54,04001-Dec-201115:40Public\Common\Oak\Lib\Sh4\Debug
Xamlruntimecore.def2,08101-Dec-201115:38Public\Common\Oak\Lib\Sh4\Retail
Xamlruntimecore.lib54,04001-Dec-201115:38Public\Common\Oak\Lib\Sh4\Retail
Xamlruntimecore.def2,08101-Dec-201115:58Public\Common\Oak\Lib\X86\Checked
Xamlruntimecore.lib54,04001-Dec-201115:58Public\Common\Oak\Lib\X86\Checked
Xamlruntimecore.def2,08101-Dec-201115:56Public\Common\Oak\Lib\X86\Debug
Xamlruntimecore.lib54,04001-Dec-201115:56Public\Common\Oak\Lib\X86\Debug
Xamlruntimecore.def2,08101-Dec-201115:55Public\Common\Oak\Lib\X86\Retail
Xamlruntimecore.lib54,04001-Dec-201115:55Public\Common\Oak\Lib\X86\Retail
Xamlruntime.lib3,64201-Dec-201114:09Public\Common\Sdk\Lib\Armv5\Checked
Xamlruntime.lib3,64201-Dec-201114:07Public\Common\Sdk\Lib\Armv5\Debug
Xamlruntime.lib3,64201-Dec-201114:05Public\Common\Sdk\Lib\Armv5\Retail
Xamlruntime.lib3,64201-Dec-201114:28Public\Common\Sdk\Lib\Armv6\Checked
Xamlruntime.lib3,64201-Dec-201114:26Public\Common\Sdk\Lib\Armv6\Debug
Xamlruntime.lib3,64201-Dec-201114:25Public\Common\Sdk\Lib\Armv6\Retail
Xamlruntime.lib3,64201-Dec-201114:48Public\Common\Sdk\Lib\Armv7\Checked
Xamlruntime.lib3,64201-Dec-201114:46Public\Common\Sdk\Lib\Armv7\Debug
Xamlruntime.lib3,64201-Dec-201114:44Public\Common\Sdk\Lib\Armv7\Retail
Xamlruntime.lib3,64201-Dec-201115:06Public\Common\Sdk\Lib\Mipsii\Checked
Xamlruntime.lib3,64201-Dec-201115:04Public\Common\Sdk\Lib\Mipsii\Debug
Xamlruntime.lib3,64201-Dec-201115:02Public\Common\Sdk\Lib\Mipsii\Retail
Xamlruntime.lib3,64201-Dec-201115:24Public\Common\Sdk\Lib\Mipsii_fp\Checked
Xamlruntime.lib3,64201-Dec-201115:22Public\Common\Sdk\Lib\Mipsii_fp\Debug
Xamlruntime.lib3,64201-Dec-201115:20Public\Common\Sdk\Lib\Mipsii_fp\Retail
Xamlruntime.lib3,66401-Dec-201115:41Public\Common\Sdk\Lib\Sh4\Checked
Xamlruntime.lib3,66401-Dec-201115:40Public\Common\Sdk\Lib\Sh4\Debug
Xamlruntime.lib3,66401-Dec-201115:38Public\Common\Sdk\Lib\Sh4\Retail
Xamlruntime.lib3,66401-Dec-201115:58Public\Common\Sdk\Lib\X86\Checked
Xamlruntime.lib3,66401-Dec-201115:56Public\Common\Sdk\Lib\X86\Debug
Xamlruntime.lib3,66401-Dec-201115:55Public\Common\Sdk\Lib\X86\Retail

↑ Back to the top


References

For more information about how to create a custom user control, visit the following Microsoft Developer Network (MSDN) website:For more information about the Resource Leak Detector, visit the following MSDN website:For more information about the visual state of a user control, visit the following MSDN website:For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Keywords: kbqfe, kbfix, kbnotautohotfix, kbpubtypekc, kbexpertiseinter, kb

↑ Back to the top

Article Info
Article ID : 2643047
Revision : 1
Created on : 1/7/2017
Published on : 1/10/2012
Exists online : False
Views : 216