Results 1 to 2 of 2

Thread: Debug problem in moc_sld.cpp

  1. #1
    Join Date
    May 2007
    Posts
    91
    Thanks
    60
    Qt products
    Qt4
    Platforms
    Windows

    Default Debug problem in moc_sld.cpp

    I am using Qt4.2.3 _eval with VS2005
    The program can run properly, but when dubug, it comes here:

    Qt Code:
    1. int SLD::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
    2. {
    3. _id = QMainWindow::qt_metacall(_c, _id, _a);
    4. if (_id < 0)
    5. return _id;
    6. if (_c == QMetaObject::InvokeMetaMethod) {
    7. switch (_id) {
    8. case 0: Trans((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
    9. case 1: on_actionShow_triggered(); break;
    10. case 2: showTrans((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
    11. }
    12. _id -= 3;
    13. }
    14. return _id;
    15. }
    To copy to clipboard, switch view to plain text mode 

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debug problem in moc_sld.cpp

    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/lib...fb(vs.80).aspx

    Regards

  3. The following 2 users say thank you to marcel for this useful post:

    Shawn (27th May 2007), sunil.thaha (25th May 2007)

Similar Threads

  1. Qt4 open src mingw from a PC to another
    By nvictor in forum Installation and Deployment
    Replies: 11
    Last Post: 1st May 2007, 17:41
  2. Adding custom defines when on debug build
    By chus in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2007, 11:38
  3. Problem with Debug mode in KDevelop
    By zlatko in forum KDE Forum
    Replies: 1
    Last Post: 16th June 2006, 09:10
  4. Replies: 11
    Last Post: 22nd March 2006, 19:06
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.