public void StopAll(ref string sErrMsg) { StringBuilder sErrorMessage = new StringBuilder(1024); int iError; if (PICommand.STP(m_iControllerId) == 0) { iError = PICommand.GetError(m_iControllerId); PICommand.TranslateError(iError, sErrorMessage, sErrorMessage.Capacity); sErrMsg = "ERROR From STP " + iError.ToString() + ": " + sErrorMessage.ToString(); } }