# HG changeset patch # User Chris Cannam # Date 1541777929 0 # Node ID 29bef008588ef6dbb61e4b12a06ee2cf806e9f96 # Parent ca64cc9047d0b5ad17dfd224a09416886206beb3 Try to avoid deleting thread while OSC interface is still being set up diff -r ca64cc9047d0 -r 29bef008588e framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Thu Oct 18 13:22:16 2018 +0100 +++ b/framework/MainWindowBase.cpp Fri Nov 09 15:38:49 2018 +0000 @@ -326,9 +326,17 @@ delete m_recordTarget; delete m_viewManager; + delete m_midiInput; + + disconnect(m_oscQueueStarter, 0, 0, 0); + m_oscQueueStarter->wait(1000); + if (m_oscQueueStarter->isRunning()) { + m_oscQueueStarter->terminate(); + m_oscQueueStarter->wait(1000); + } + delete m_oscQueueStarter; delete m_oscQueue; - delete m_oscQueueStarter; - delete m_midiInput; + Profiles::getInstance()->dump(); }