Emulator crashes on update install
description
The emulator crashes on UpdateProvider.InstallUpdate method.
Suggested solution:
[\MicroFrameworkPK_v4_2\Framework\Tools\Emulator\UpdateProvider.cs]
line 89:
GCHandle hb = GCHandle.Alloc(asmBytes);
IntPtr gcBytes = GCHandle.ToIntPtr(hb);
The array should be pinned:
GCHandle hb = GCHandle.Alloc(asmBytes, GCHandleType.Pinned);
IntPtr gcBytes = hb.AddrOfPinnedObject();
The same with header on line 74.