7
JIT Hiccup in DotNet 8.0
(github.com)
You should probably report this as an issue on the dotnet runtime GitHub repo: https://github.com/dotnet/runtime
I would also suggest you include information on the hardware you’re using for this (architecture, ram, cpu, etc).
I can't help with the bug and I don't know what your project's constraints are, but it's worth noting that this isn't the recommended way to mix C# and native code anymore.
I don't think C++/CLI is deprecated, but you'll find a lot more community resources if you're using native C++ and binding it via the C ABI.
Getting started
Useful resources
IDEs and code editors
Tools
Rules
Related communities
Wikipedia pages