Applies ToWindows Embedded Compact 7

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.

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.

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:

Windows Embedded Compact 7 Updates

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.

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 name

File size

Date

Time

Path

Xamlruntime.map

1,840,534

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii\Checked

Xamlruntime.rel

2,848,176

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii\Checked

Xamlruntime.dll

1,712,128

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii\Checked

Xamlruntime.map

1,435,946

03-Jul-2015

10:56

Public\Common\Oak\Target\Mipsii\Retail

Xamlruntime.rel

2,322,261

03-Jul-2015

10:56

Public\Common\Oak\Target\Mipsii\Retail

Xamlruntime.dll

1,236,992

03-Jul-2015

10:56

Public\Common\Oak\Target\Mipsii\Retail

Xamlruntime.map

2,462,379

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii\Debug

Xamlruntime.rel

3,905,400

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii\Debug

Xamlruntime.dll

2,523,136

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii\Debug

Xamlruntime.map

1,833,288

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv6\Checked

Xamlruntime.rel

1,763,460

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv6\Checked

Xamlruntime.dll

1,359,872

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv6\Checked

Xamlruntime.map

1,264,169

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv6\Retail

Xamlruntime.rel

1,577,831

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv6\Retail

Xamlruntime.dll

970,752

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv6\Retail

Xamlruntime.map

2,485,090

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv6\Debug

Xamlruntime.rel

2,317,244

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv6\Debug

Xamlruntime.dll

2,232,320

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv6\Debug

Xamlruntime.map

1,787,558

03-Jul-2015

10:55

Public\Common\Oak\Target\X86\Checked

Xamlruntime.rel

1,731,067

03-Jul-2015

10:55

Public\Common\Oak\Target\X86\Checked

Xamlruntime.dll

1,060,864

03-Jul-2015

10:55

Public\Common\Oak\Target\X86\Checked

Xamlruntime.map

1,428,788

03-Jul-2015

10:54

Public\Common\Oak\Target\X86\Retail

Xamlruntime.rel

1,626,087

03-Jul-2015

10:54

Public\Common\Oak\Target\X86\Retail

Xamlruntime.dll

778,240

03-Jul-2015

10:54

Public\Common\Oak\Target\X86\Retail

Xamlruntime.map

2,282,239

03-Jul-2015

10:55

Public\Common\Oak\Target\X86\Debug

Xamlruntime.rel

2,140,373

03-Jul-2015

10:55

Public\Common\Oak\Target\X86\Debug

Xamlruntime.dll

1,601,536

03-Jul-2015

10:55

Public\Common\Oak\Target\X86\Debug

Xamlruntime.map

1,803,333

03-Jul-2015

10:55

Public\Common\Oak\Target\Sh4\Checked

Xamlruntime.rel

2,186,193

03-Jul-2015

10:55

Public\Common\Oak\Target\Sh4\Checked

Xamlruntime.dll

1,265,664

03-Jul-2015

10:55

Public\Common\Oak\Target\Sh4\Checked

Xamlruntime.map

1,425,652

03-Jul-2015

10:55

Public\Common\Oak\Target\Sh4\Retail

Xamlruntime.rel

1,955,179

03-Jul-2015

10:55

Public\Common\Oak\Target\Sh4\Retail

Xamlruntime.dll

925,696

03-Jul-2015

10:55

Public\Common\Oak\Target\Sh4\Retail

Xamlruntime.map

2,461,372

03-Jul-2015

10:55

Public\Common\Oak\Target\Sh4\Debug

Xamlruntime.rel

2,927,897

03-Jul-2015

10:55

Public\Common\Oak\Target\Sh4\Debug

Xamlruntime.dll

2,015,232

03-Jul-2015

10:55

Public\Common\Oak\Target\Sh4\Debug

Xamlruntime.map

1,838,850

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii_fp\Checked

Xamlruntime.rel

2,819,669

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii_fp\Checked

Xamlruntime.dll

1,703,936

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii_fp\Checked

Xamlruntime.map

1,434,544

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii_fp\Retail

Xamlruntime.rel

2,301,497

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii_fp\Retail

Xamlruntime.dll

1,236,992

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii_fp\Retail

Xamlruntime.map

2,460,543

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii_fp\Debug

Xamlruntime.rel

3,879,010

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii_fp\Debug

Xamlruntime.dll

2,514,944

03-Jul-2015

10:55

Public\Common\Oak\Target\Mipsii_fp\Debug

Xamlruntime.map

1,833,276

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv7\Checked

Xamlruntime.rel

1,763,460

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv7\Checked

Xamlruntime.dll

1,351,680

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv7\Checked

Xamlruntime.map

1,264,094

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv7\Retail

Xamlruntime.rel

1,577,802

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv7\Retail

Xamlruntime.dll

966,656

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv7\Retail

Xamlruntime.map

2,485,098

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv7\Debug

Xamlruntime.rel

2,317,215

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv7\Debug

Xamlruntime.dll

2,228,224

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv7\Debug

Xamlruntime.map

1,833,826

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv5\Checked

Xamlruntime.rel

1,769,086

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv5\Checked

Xamlruntime.dll

1,372,160

03-Jul-2015

10:56

Public\Common\Oak\Target\Armv5\Checked

Xamlruntime.map

1,264,656

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv5\Retail

Xamlruntime.rel

1,582,471

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv5\Retail

Xamlruntime.dll

983,040

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv5\Retail

Xamlruntime.map

2,484,754

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv5\Debug

Xamlruntime.rel

2,324,871

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv5\Debug

Xamlruntime.dll

2,240,512

03-Jul-2015

10:55

Public\Common\Oak\Target\Armv5\Debug

References

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

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.