SEHException when instantiating Windows.UI.Xaml.Media.Imaging.BitmapImage inside DLL on Hololens

I get:

Exception thrown: ‘System.Runtime.InteropServices.SEHException’ in Assembly-CSharp.dll

when instantiating a Windows.UI.Xaml.Media.Imaging.BitmapImage instance inside a UWP DLL on the Hololens.

questions:

  1. Can I do this?
  2. Are their any capabilities that I am missing?
  3. If not, is there an alternative?

Thanks in advance!

Blaine

I haven’t tried to use that myself, but that type’s placement in the XAML namespace makes me want to double-check you’re building for that. So as a first step, have you changed the Build Type from D3D to XAML in the Build Settings window?

OK, I got around this problem by not using XAML. Andrew, thanks a lot for your quick response!