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