❔ wpf app crashing when trying to run managed c++ code inside a dll - C#