/**********************************************************************************/ public void cancelOptSchedule(string optID) { Thread thread = new Thread(delegate() { try { CancelOpt cancelOpt; lock (m_ven) { cancelOpt = m_ven.createCancelOpt(RandomHex.instance().generateRandomHex(10), optID); } m_callbacks.processCancelOpt(cancelOpt); } catch (Exception ex) { m_callbacks.processException(ex); } }); thread.Start(); }