m_ErrorType = salIqStop(m_DataStreamHandle);
if (m_ErrorType != SAL_ERR_NONE)
{
SensorErrorHandler(m_ErrorType);
return FALSE;
}

解决方案 »

  1.   

    m_ErrorType = salIqStop(m_DataStreamHandle);
    if (m_ErrorType != SAL_ERR_NONE)//看salIqStop函数的返回值是否有错误
    {
    SensorErrorHandler(m_ErrorType);
    return FALSE;
    }
    主要查查salIqStop和SensorErrorHandler函数的说明就好啦
      

  2.   

    if里面是有错误还是没错误呢,已知SAL_ERR_NONE=0
      

  3.   

    当然是有错,一般编程的惯例是,有错误时返回FALSE。