/**********************************************************/ public void cancelRegistration() { Thread thread = new Thread(delegate() { try { CancelPartyRegistration cancelRegistration; lock (m_ven) { cancelRegistration = m_ven.cancelPartyRegistration(); } m_callbacks.processCancelRegistration(cancelRegistration); } catch (Exception ex) { m_callbacks.processException(ex); } }); thread.Start(); }