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

1 comment:

  1. Fantastic. Saved me hours (weeks? years?) trying to work out what was going on.

    ReplyDelete