diff options
author | Gaurav Khanna <gkhanna@microsoft.com> | 2015-05-06 17:22:02 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-05-07 09:37:50 -0700 |
commit | c6efc7047edb38075310cfef8ea28b91717b8108 (patch) | |
tree | 238422cf4005d34bac8b5e7668284201a5924ccb /src/inc/pedecoder.inl | |
parent | 3e4c2662af466c6db7b40345b6efea542146274c (diff) | |
download | coreclr-c6efc7047edb38075310cfef8ea28b91717b8108.tar.gz coreclr-c6efc7047edb38075310cfef8ea28b91717b8108.tar.bz2 coreclr-c6efc7047edb38075310cfef8ea28b91717b8108.zip |
Disable AssemblyLoadContext in AppX mode
When running an app in AppX mode, the AssemblyLoadContext based PInvoke resolution mechanism kicks in incorrectly as it does not account for an assembly bound by the WinRT binder. It mistakes it to be the AssemblyLoadContext binder and attempts to perform a resolution via it, passing it NULL value for the managed load context. This results in GCHandle throwing InvalidOperationException.
The fix is to not go via the host if we are an AppX process and when we do, we account for WinRT binder as well.
[tfs-changeset: 1466015]
Diffstat (limited to 'src/inc/pedecoder.inl')
0 files changed, 0 insertions, 0 deletions