Showing posts with label .Net Compact Framework. Show all posts
Showing posts with label .Net Compact Framework. Show all posts

Monday, July 13, 2015

.NETCF 3.5 under WEC7: “CompareInfo” for some supported languages fails

Hi floks,

the following problem is present in the .NET Compact Framework 3.5 under Windows Embedded Compact 7 but not under Windows Embedded CE 6.0:

Assuming you added all needed languages to your WEC7 OSDesign (selected in the Catalog and build), the following behavior can be seen for most non-western Latin character set languages like Polish or Mongolian, for common non-western Latin character set languages like Russian, there is a bug fix available from MSFT:

1.       Opening the class “CultureInfo” with a String (e.g. “mn-MN”) from a .NETCF 3.5 works without problems. This mean the language is supported, otherwise there would be “PlatformNotSupportedException”
2.       However, calling the “CompareInfo” field of that generated class for the same language will throw the “PlatformNotSupportedException” indicating the language is NOT supported!

The problem here is that .NETCF 3.5 seems to still depend on the WinCE600 style NLS table support. To fix the problem, you need to make sure that the %_FLATRELEASE%\nlscfg.inf file contains the LCIDs of all languages you want to support. You can write a script adding the missing LCIDs based on the respective SYSGEN variables (SYSGEN_NLS_xx).


Have fun!

Tuesday, October 1, 2013

.NET Compact Framework Prefetch Abort

Hi Folks,

When doing debugging of .NET Compact Framework 3.5 applications you can encounter Prefetch Abort errors, due to the amount of RAM used by your application. This happens only when the JIT Debugger is attached to your Windows Embedded CE 6.0 or Windows Embedded Compact 7 target.


In that case Microsoft is providing a registry fix-up that allows the debugger to catch this use case. Add the following to your device registry :

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework]
"JITCodeBufferSizeLimitEnabled"=dword:00000001
Microsoft fixup page link.

-Nicolas