Noesis::GUI::Init failing after Noesis::GUI::Shutdown
Posted: 01 Sep 2017, 10:38
Hi,
we have successfully integrated Noesis into our project, but now we have problems with our Google Tests. Some of our tests start the whole engine and shut it down again. And then the next test, that wants to start the engine again fails with this error on Noesis::GUI::Init(NoesisErrorHandler) (all tests run on the same thread):
Already initialized - Gui\Core\Src\IntegrationAPI.cpp:60
The shutdown runs through without any problems. This is our uninit method:
Can someone give me a hint what the source of this problem might be? Are there more methods to call on shutdown which I might have missed?
we have successfully integrated Noesis into our project, but now we have problems with our Google Tests. Some of our tests start the whole engine and shut it down again. And then the next test, that wants to start the engine again fails with this error on Noesis::GUI::Init(NoesisErrorHandler) (all tests run on the same thread):
Already initialized - Gui\Core\Src\IntegrationAPI.cpp:60
The shutdown runs through without any problems. This is our uninit method:
Code: Select all
void NoesisGuiLayer::uninitialize()
{
// Not sure if we need to explicitly unregister our components
NsUnregisterComponent<EnscapeUiDescription::MiniMapControl>();
NsUnregisterComponent<EnscapeUiDescription::MultiplyConverter>();
NsUnregisterComponent<EnscapeUiDescription::RadToDegreeConverter>();
m_mainDataContext.Reset();
m_xamlView.Reset();
m_glRenderDevice.Reset();
Noesis::GUI::Shutdown();
}