Hello,
I’m trying C# wrapper from the latest SDK v.2.0.7 and met the following issues:
- Initialization doesn’t work in .Net Console applications:
ERROR [orbbec.ni.WmfBackend] Unable to initialize COM (HRESULT 0x80010106: "Cannot change thread mode after it is set.")
- After that I tried .Net WPF Application. And here I found out that call
Astra.Context.Terminate()
hangs forever. - If I omit call
Astra.Context.Terminate()
then application crashes during exit.
Source code of WPF application:
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
Astra.Context.Initialize();
}
protected override void OnExit(ExitEventArgs e)
{
base.OnExit(e);
Astra.Context.Terminate(); // <-- hangs here!
}
}
Please, advise.
P.S. Environment:
- Win 8.1 64-bit
- .Net Framework 4.6.1
- dll-s from
bin
folder of SDK v.2.0.7 (VS2013, win64) were used to run test .Net application
EDIT:
With dll-s from SDK VS2015 win64 - the same.
EDIT 2:
Sorry, with dll-s from SDK VS2015 win64 Astra.Context.Terminate()
works.