Well - for the Manager->Shutdown issue: This would work like this:
Instead of:
void ToDoListView::DestroyControls(bool control)
{
Manager::Get()->GetAppWindow()->RemoveEventHandler(this);
if (control)
{
m_pPanel->Destroy();
m_pPanel = nullptr;
}
}
...use:
void ToDoListView::DestroyControls(bool control)
{
if ( !Manager::Get()->IsAppShuttingDown() )
{
Manager::Get()->GetAppWindow()->RemoveEventHandler(this);
if (control)
{
m_pPanel->Destroy();
m_pPanel = nullptr;
}
}
}
This seems to fix the original error and avoid he assertions.
(Sorry - I didn't find the original post.)
As for the startup-thing:
The original patch works fine here on Windows and really is something to commit from my point of view...