PDA

View Full Version : Debug problem in moc_sld.cpp



Shawn
25th May 2007, 02:08
I am using Qt4.2.3 _eval with VS2005
The program can run properly, but when dubug, it comes here:


int SLD::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QMainWindow::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
switch (_id) {
case 0: Trans((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
case 1: on_actionShow_triggered(); break;
case 2: showTrans((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
}
_id -= 3;
}
return _id;
}

It can run to the last brace, and then tells me:
"There is no source code available for the current location"
but the program can run properly, so what's wrong?

marcel
25th May 2007, 05:23
There is nothing wrong.
It means that there is no source code for the current location of the instruction pointer.
Either means you are returning from the function and the objects on the stack are deleted( and you don't have the source code for them, but not the case here - there's nothing allocated locally), or you are calling a function in a library.

See:http://msdn2.microsoft.com/en-us/library/3sehk0fb(vs.80).aspx

Regards