奇怪的问底,大家帮忙解决下,
我在代码中添加了这一句
void MainWindow::on_openAction_triggered()
{
int index = mediaSources.count();
QStringList files = QFileDialog::getOpenFileNames(this, tr("Select media files")); //断点处在Debug模式下
就是上面一段代码,断点段在第二句,只要F10过了断点那一段就会就提示
出错,程序跳到
qlist.h文件里面的红色那段
template <typename T>
Q_OUTOFLINE_TEMPLATE typename QList<T>::Node *QList<T>::detach_helper_grow(int i, int c)
{
Node *n = reinterpret_cast<Node *>(p.begin());
QListData::Data *x = p.detach_grow(&i, c);
QT_TRY {
node_copy(reinterpret_cast<Node *>(p.begin()),
reinterpret_cast<Node *>(p.begin() + i), n);
} QT_CATCH(...) {
qFree(d);
d = x;
QT_RETHROW;
}
QT_TRY {
node_copy(reinterpret_cast<Node *>(p.begin() + i + c),
reinterpret_cast<Node *>(p.end()), n + i);
} QT_CATCH(...) {
node_destruct(reinterpret_cast<Node *>(p.begin()), reinterpret_cast<Node *>(p.begin() + i));
qFree(d);
d = x;
QT_RETHROW;
}
这是什么
问题啊?
if (!x->ref.deref())
free(x);
return reinterpret_cast<Node *>(p.begin() + i);
}
在家调试就没问题,在公司调试就出问题。。。
贴上出错提示:
[ 此帖被shaoxie1986在2011-01-27 13:16重新编辑 ]