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: Silverlight for Windows Embedded application crashes from a memory leak in a custom control of type VTYPE_BSTR in Windows Embedded Compact 7


View products that this article applies to.

Introduction

This article describes an issue that triggers a Silverlight for Windows Embedded application crash from a memory leak in a custom control of type VTYPE_BSTR in Windows Embedded Compact 7. An update is available to resolve this issue. Before you install this update, all previously issued updates for this product must be installed.

↑ Back to the top


Symptoms

You have a Silverlight for Windows Embedded application in Windows Embedded Compact 7. If the application creates and registers a custom control as a custom dependency property of type VTYPE_BSTR, a memory leak may occur. Additionally, the memory leak may cause the application to crash.

Examples:
  • The IXRCustomUserControl::GetPropertyValue() method is called, an XRValue is returned and sets the XRValue.shouldFreeValuePointer variable to False. This causes a break. If you set XRValue.shouldFreeValuePointer = True in your application, this will cause a memory leak.
  • The GetDependencyProperty method is called, an XRValue is returned and sets the XRValue.shouldFreeValuePointer variable to True. This also causes a memory leak.

These memory leaks eventually cause the application to crash.

↑ Back to the top


Resolution

Software update information

A supported software update is now available from Microsoft as Windows Embedded Compact 7 Monthly Update (June 2015).

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
Xamlruntime.map1,840,53403-Jul-201510:55Public\Common\Oak\Target\Mipsii\Checked
Xamlruntime.rel2,848,17603-Jul-201510:55Public\Common\Oak\Target\Mipsii\Checked
Xamlruntime.dll1,712,12803-Jul-201510:55Public\Common\Oak\Target\Mipsii\Checked
Xamlruntime.map1,435,94603-Jul-201510:56Public\Common\Oak\Target\Mipsii\Retail
Xamlruntime.rel2,322,26103-Jul-201510:56Public\Common\Oak\Target\Mipsii\Retail
Xamlruntime.dll1,236,99203-Jul-201510:56Public\Common\Oak\Target\Mipsii\Retail
Xamlruntime.map2,462,37903-Jul-201510:55Public\Common\Oak\Target\Mipsii\Debug
Xamlruntime.rel3,905,40003-Jul-201510:55Public\Common\Oak\Target\Mipsii\Debug
Xamlruntime.dll2,523,13603-Jul-201510:55Public\Common\Oak\Target\Mipsii\Debug
Xamlruntime.map1,833,28803-Jul-201510:56Public\Common\Oak\Target\Armv6\Checked
Xamlruntime.rel1,763,46003-Jul-201510:56Public\Common\Oak\Target\Armv6\Checked
Xamlruntime.dll1,359,87203-Jul-201510:56Public\Common\Oak\Target\Armv6\Checked
Xamlruntime.map1,264,16903-Jul-201510:56Public\Common\Oak\Target\Armv6\Retail
Xamlruntime.rel1,577,83103-Jul-201510:56Public\Common\Oak\Target\Armv6\Retail
Xamlruntime.dll970,75203-Jul-201510:56Public\Common\Oak\Target\Armv6\Retail
Xamlruntime.map2,485,09003-Jul-201510:55Public\Common\Oak\Target\Armv6\Debug
Xamlruntime.rel2,317,24403-Jul-201510:55Public\Common\Oak\Target\Armv6\Debug
Xamlruntime.dll2,232,32003-Jul-201510:55Public\Common\Oak\Target\Armv6\Debug
Xamlruntime.map1,787,55803-Jul-201510:55Public\Common\Oak\Target\X86\Checked
Xamlruntime.rel1,731,06703-Jul-201510:55Public\Common\Oak\Target\X86\Checked
Xamlruntime.dll1,060,86403-Jul-201510:55Public\Common\Oak\Target\X86\Checked
Xamlruntime.map1,428,78803-Jul-201510:54Public\Common\Oak\Target\X86\Retail
Xamlruntime.rel1,626,08703-Jul-201510:54Public\Common\Oak\Target\X86\Retail
Xamlruntime.dll778,24003-Jul-201510:54Public\Common\Oak\Target\X86\Retail
Xamlruntime.map2,282,23903-Jul-201510:55Public\Common\Oak\Target\X86\Debug
Xamlruntime.rel2,140,37303-Jul-201510:55Public\Common\Oak\Target\X86\Debug
Xamlruntime.dll1,601,53603-Jul-201510:55Public\Common\Oak\Target\X86\Debug
Xamlruntime.map1,803,33303-Jul-201510:55Public\Common\Oak\Target\Sh4\Checked
Xamlruntime.rel2,186,19303-Jul-201510:55Public\Common\Oak\Target\Sh4\Checked
Xamlruntime.dll1,265,66403-Jul-201510:55Public\Common\Oak\Target\Sh4\Checked
Xamlruntime.map1,425,65203-Jul-201510:55Public\Common\Oak\Target\Sh4\Retail
Xamlruntime.rel1,955,17903-Jul-201510:55Public\Common\Oak\Target\Sh4\Retail
Xamlruntime.dll925,69603-Jul-201510:55Public\Common\Oak\Target\Sh4\Retail
Xamlruntime.map2,461,37203-Jul-201510:55Public\Common\Oak\Target\Sh4\Debug
Xamlruntime.rel2,927,89703-Jul-201510:55Public\Common\Oak\Target\Sh4\Debug
Xamlruntime.dll2,015,23203-Jul-201510:55Public\Common\Oak\Target\Sh4\Debug
Xamlruntime.map1,838,85003-Jul-201510:55Public\Common\Oak\Target\Mipsii_fp\Checked
Xamlruntime.rel2,819,66903-Jul-201510:55Public\Common\Oak\Target\Mipsii_fp\Checked
Xamlruntime.dll1,703,93603-Jul-201510:55Public\Common\Oak\Target\Mipsii_fp\Checked
Xamlruntime.map1,434,54403-Jul-201510:55Public\Common\Oak\Target\Mipsii_fp\Retail
Xamlruntime.rel2,301,49703-Jul-201510:55Public\Common\Oak\Target\Mipsii_fp\Retail
Xamlruntime.dll1,236,99203-Jul-201510:55Public\Common\Oak\Target\Mipsii_fp\Retail
Xamlruntime.map2,460,54303-Jul-201510:55Public\Common\Oak\Target\Mipsii_fp\Debug
Xamlruntime.rel3,879,01003-Jul-201510:55Public\Common\Oak\Target\Mipsii_fp\Debug
Xamlruntime.dll2,514,94403-Jul-201510:55Public\Common\Oak\Target\Mipsii_fp\Debug
Xamlruntime.map1,833,27603-Jul-201510:56Public\Common\Oak\Target\Armv7\Checked
Xamlruntime.rel1,763,46003-Jul-201510:56Public\Common\Oak\Target\Armv7\Checked
Xamlruntime.dll1,351,68003-Jul-201510:56Public\Common\Oak\Target\Armv7\Checked
Xamlruntime.map1,264,09403-Jul-201510:56Public\Common\Oak\Target\Armv7\Retail
Xamlruntime.rel1,577,80203-Jul-201510:56Public\Common\Oak\Target\Armv7\Retail
Xamlruntime.dll966,65603-Jul-201510:56Public\Common\Oak\Target\Armv7\Retail
Xamlruntime.map2,485,09803-Jul-201510:55Public\Common\Oak\Target\Armv7\Debug
Xamlruntime.rel2,317,21503-Jul-201510:55Public\Common\Oak\Target\Armv7\Debug
Xamlruntime.dll2,228,22403-Jul-201510:55Public\Common\Oak\Target\Armv7\Debug
Xamlruntime.map1,833,82603-Jul-201510:56Public\Common\Oak\Target\Armv5\Checked
Xamlruntime.rel1,769,08603-Jul-201510:56Public\Common\Oak\Target\Armv5\Checked
Xamlruntime.dll1,372,16003-Jul-201510:56Public\Common\Oak\Target\Armv5\Checked
Xamlruntime.map1,264,65603-Jul-201510:55Public\Common\Oak\Target\Armv5\Retail
Xamlruntime.rel1,582,47103-Jul-201510:55Public\Common\Oak\Target\Armv5\Retail
Xamlruntime.dll983,04003-Jul-201510:55Public\Common\Oak\Target\Armv5\Retail
Xamlruntime.map2,484,75403-Jul-201510:55Public\Common\Oak\Target\Armv5\Debug
Xamlruntime.rel2,324,87103-Jul-201510:55Public\Common\Oak\Target\Armv5\Debug
Xamlruntime.dll2,240,51203-Jul-201510:55Public\Common\Oak\Target\Armv5\Debug

↑ Back to the top


References

Learn about the terminology that Microsoft uses to describe software updates.

↑ Back to the top


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

↑ Back to the top

Article Info
Article ID : 3032063
Revision : 1
Created on : 1/7/2017
Published on : 7/14/2015
Exists online : False
Views : 167