1

Closed

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.
Closed Feb 7, 2012 at 8:45 PM by ZachLibby

comments

wrote Feb 7, 2012 at 8:45 PM

Resolved with changeset 16878.