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: Limit of 1024 unique closed constructed types for generic type on a Windows Embedded Compact 7 device


View products that this article applies to.

Symptoms

Assume that you have a .NET Compact Framework 3.5-based application on a Windows Embedded Compact 7-based device. If you use a generic class, for example List, in the application, you can only create an instance of this class together with 1024 unique types. When you try to create an instance of List together with the 1025th type, the application will throw an exception during the Just in Time (JIT) stage. This exception cannot be trapped by the application and leads to application termination.

To enable the fix, add the following registry key for customization:
[HKEY_LOCAL_MACHINE\Software\Microsoft\.NETCompactFramework]
"MaxNumberOfGenericInstances"=dword
Note If the registry key is not found, the application will use a default value of 1024.

↑ Back to the top


More Information

Software update information

Download information

The Windows Embedded Compact 7 Monthly Update (March 2014) is now available from Microsoft. To download this Windows Embedded Compact 7 monthly update, go to the following Microsoft Download Center website:


The kind of processor that each file applies to is visible in the name of each file in the "File information" section.

Registry information

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows

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 hotfix package

File nameFile sizeDateTimePath
Mscoree3_5.dll838,81629-Mar-201406:11Others\Dotnetv35\Armv5
Mscoree3_5.rel404,72329-Mar-201406:11Others\Dotnetv35\Armv5
Mscoree3_5.dll838,81629-Mar-201406:11Others\Dotnetv35\Armv6
Mscoree3_5.rel404,72329-Mar-201406:11Others\Dotnetv35\Armv6
Mscoree3_5.dll838,81629-Mar-201406:11Others\Dotnetv35\Armv7
Mscoree3_5.rel404,72329-Mar-201406:11Others\Dotnetv35\Armv7
Mscoree3_5.dll604,32029-Mar-201406:11Others\Dotnetv35\X86
Mscoree3_5.rel327,69929-Mar-201406:11Others\Dotnetv35\X86


↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


References

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: kbfix, kbsurveynew, kbexpertiseadvanced, atdownload, kb

↑ Back to the top

Article Info
Article ID : 2936028
Revision : 1
Created on : 1/7/2017
Published on : 4/15/2014
Exists online : False
Views : 167