求助!!!求大神帮解决

求助!!!为什么会出现Test.exe 中的 0x00000001 处有未经处理的异常: 0xC0000005: Access violation 这个问题 求大神帮解决

代码如下:

void CRemotePage::OnSearch()//搜索 要求:PubName PriName Address 三种类型都能查询到该设备
{
QString strText = m_edtSearch.text(); // 获取输入文字
{
int iCount = m_wndListWidget.count();
QListWidgetItem * pItem = NULL;

    //pItem->setData(Qt::DisplayRole, false);//背景初始化

    for (int i = 0; i < iCount; ++i)
    {
        pItem = m_wndListWidget.item(i);
    }
    for (int i = 0; i < iCount; ++i)
    {
        std::string str1 = strText.toStdString();
        std::string str2 = pItem->text().toStdString();
        if (strstr(str2.c_str(), str1.c_str()) && (str1.size() != NULL))
        {
            pItem->setData(Qt::DisplayRole, true);//高亮
        }
    }
}

}