Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting error: ‘unavailable synchroneous data’ in Qt Creator during debugging
Forum Update on Monday, May 27th 2025

Getting error: ‘unavailable synchroneous data’ in Qt Creator during debugging

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krzysiek2805
    wrote on 13 Sept 2011, 21:17 last edited by
    #1

    Hey guys, I'm getting this strange error in Qt while debugging .. Here's whats happening: I am debugging inside this function/method "ustawGracza" which is part of a class named Table. However, when I'm halted at a specific line within this function and I look at the Local Watch, I see all the variables of this class object listed, however next to all of them it says: 'unavailable synchroneous data' (spelled exactly like this). When I try to access any such variable "aktualnyGracz" or another variable within this function, the program crashes. In the constructor variables are displayed good.
    This is my code:

    server.h
    @
    class Server : public QObject
    {
    Q_OBJECT
    public:
    ...
    Table *zwrocTable()
    { return table; }
    QList<Gracz *> listaGracz;
    qint16 naszIndex;
    ...

    public slots:
    ...
    void startGame();
    ...

    private:
    QWidget *parentWindow;
    Table *table;

    };
    @

    server.cpp
    @
    void Server::startGame()
    {
    table = new Table(parentWindow, listaGracz, naszIndex);
    connect(table, SIGNAL(closeTable()), this, SLOT(closeServer()), Qt::DirectConnection);
    connect(table, SIGNAL(podbij(quint16)), this, SLOT(podbij(quint16)), Qt::DirectConnection);
    connect(table, SIGNAL(spasuj()), this, SLOT(spasuj()));
    table->ustawGracza(0);
    }
    @

    table.h
    @
    class Table : public QMainWindow, public Ui::TableWindow
    {
    Q_OBJECT
    public:
    Table(QWidget *parent, QList<Gracz *> &l, qint16 &n);
    void ustawGracza(qint16 index);

    private:
    ...
    qint16 naszIndex;
    QList<Gracz *> listaWskaz;
    };
    @

    table.cpp
    @
    Table::Table(QWidget *parent, QList<Gracz *> &l, qint16 &n) :
    QMainWindow(parent), listaWskaz(l), naszIndex(n)
    {}

    void Table::ustawGracza(qint16 index)
    {

    qDebug() << "something " << index;
    qDebug() << aktualnyGracz;
    uaktualnij();
    

    }
    @

    I’m using Windows 7 32bit, Qt 4.7.3 (32 bit).
    Can you help me?

    1 Reply Last reply
    0

    1/1

    13 Sept 2011, 21:17

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved