FIX: Memory leak in a Silverlight for Windows Embedded app in a type VTYPE_BSTR custom control in Windows Embedded Compact 2013

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 2013. An update is available to resolve this issue. Before you install this update, all previously issued updates for this product must be installed.
Symptoms
You have a Silverlight for Windows Embedded application in Windows Embedded Compact 2013. If the application creates and registers a custom control as a custom dependency property of type VTYPE_BSTR, this may trigger a memory leak. Additionally, the memory leak may cause the application to crash.

Examples:
  • When 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 variable to True in your application, this causes a memory leak.
  • When the GetDependencyProperty method is called, an XRValue is returned and sets the XRValue.shouldFreeValuePointer variable to True. This causes a memory leak.

Software update information

Download information

Windows Embedded Compact 2013 Monthly Update (July 2015) is now available from Microsoft. To download this Windows Embedded Compact 2013 monthly update, go to Microsoft OEM Online or MyOEM.

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_dt.dll1,133,24003-Aug-201509:31Public\Common\Oak\Bin\I386
Xamlruntime.map2,416,80403-Aug-201509:40Public\Common\Oak\Target\X86\Checked
Xamlruntime.rel2,126,85003-Aug-201509:40Public\Common\Oak\Target\X86\Checked
Xamlruntime.dll1,167,36003-Aug-201509:40Public\Common\Oak\Target\X86\Checked
Xamlruntime.map1,373,90303-Aug-201509:39Public\Common\Oak\Target\X86\Retail
Xamlruntime.rel1,679,26403-Aug-201509:39Public\Common\Oak\Target\X86\Retail
Xamlruntime.dll806,91203-Aug-201509:39Public\Common\Oak\Target\X86\Retail
Xamlruntime.map2,584,91603-Aug-201509:39Public\Common\Oak\Target\X86\Debug
Xamlruntime.rel2,339,33303-Aug-201509:39Public\Common\Oak\Target\X86\Debug
Xamlruntime.dll1,687,55203-Aug-201509:39Public\Common\Oak\Target\X86\Debug
Xamlruntime.map5,667,73503-Aug-201509:40Public\Common\Oak\Target\Armv7\Checked
Xamlruntime.rel2,125,89303-Aug-201509:40Public\Common\Oak\Target\Armv7\Checked
Xamlruntime.dll1,228,80003-Aug-201509:40Public\Common\Oak\Target\Armv7\Checked
Xamlruntime.map2,422,25203-Aug-201509:40Public\Common\Oak\Target\Armv7\Retail
Xamlruntime.rel1,444,01603-Aug-201509:40Public\Common\Oak\Target\Armv7\Retail
Xamlruntime.dll765,95203-Aug-201509:40Public\Common\Oak\Target\Armv7\Retail
Xamlruntime.map9,765,73103-Aug-201509:39Public\Common\Oak\Target\Armv7\Debug
Xamlruntime.rel2,121,74603-Aug-201509:39Public\Common\Oak\Target\Armv7\Debug
Xamlruntime.dll1,773,56803-Aug-201509:39Public\Common\Oak\Target\Armv7\Debug
Xamlruntime_dt.dll1,133,24003-Aug-201509:31Program files\Microsoft visual studio 11.0\Vc\Vcwizards\Windowsembeddedxamltools
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
References
Learn about the terminology that Microsoft uses to describe software updates.
Properties

Article ID: 3082657 - Last Review: 08/20/2015 18:07:00 - Revision: 1.0

Windows Embedded Compact 2013

  • kbqfe kbsurveynew kbexpertiseadvanced atdownload KB3082657
Feedback