✅ ILC AOT Analysis IL1005
So I'm working in a NativeAOT env, and I have this little chunk of code:
And that small two lines throws
My code using said function is
Any ideas?
And that small two lines throws
My code using said function is
Any ideas?
C++
[RuntimeImport("testGCC")]
extern static void* testGCC(void* a);C#
string test = "Hello from GCC";
fixed (char* p = test)
{
char* result = (char*)testGCC(p);
Canvas.DrawString(result, 0, 56, Color.White);
}ILC : AOT analysis error IL1005: Program.testGCC(Void*): Method will always throw because: Invalid IL or CLR metadata in 'Void* Program.testGCC(Void*)'