Add volatile to m_Thread in matlab dlg.