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

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.
Propriedades

ID do Artigo: 3082657 - Última Revisão: 20/08/2015 - Revisão: 1

Windows Embedded Compact 2013

Comentários