-
I am trying to manually load a NativeAot-compiled DLL from memory, just to explore the possibilities of this new tech. The point is to avoid using When investigating the runtime's source code, I've seen multiple references to helper functions that throw this exception (e.g. src/coreclr/nativeaot/Test.CoreLib/src/System/RuntimeExceptionHelpers.cs), but I can't figure out a way to identify the exact cause, or even just a way to debug it when it happens. All of the mentioned loader libraries have been pretty well-tested, and they all work with regular native DLLs compiled from C/C++. What is it in NativeAot that causes an incompatibility with manual memory loading? My guess would be that the native runtime might try to call Is there a way to make NativeAot libraries compatible with manual in-memory loading? Any pointers in the right direction are appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
These loaders have number of compatibility issues. It is not surprising that you are seeing crashes when trying to use them to load native AOT compiled binaries. |
Beta Was this translation helpful? Give feedback.
These loaders have number of compatibility issues. It is not surprising that you are seeing crashes when trying to use them to load native AOT compiled binaries.