0

QtConcurrent::run() をループで実行しようとしましたが、プログラムがクラッシュします: (私は libsmbclient を使用しています)

void Scanner::scan()
{
    for(int i=0;i<ipList.length();i++)
    {
        QtConcurrent::run(this,&Scanner::scanThread,i);
    }
}
void Scanner::scanThread(int i)
{
int dh;
QString ip;
ip="smb://"+ipList[i]+"/";
dh= smbc_opendir(ip.toAscii());  // debugger points to this location
if(dh<0)
    return;
emit
        updateTree(i,dh);         // on commenting this line, it still crashes 
}

エラー:

talloc: 解放後のアクセス エラー - 最初の解放は ../lib/util/talloc_stack.c:103 にある可能性があります。talloc
マジック値が正しくありません - 解放後
のアクセス プログラムが予期せず終了しました。

4

0 に答える 0