View Full Version : Getting error: ‘unavailable synchroneous data’ in Qt Creator during debugging
ahmadka
25th June 2010, 17:55
Hey guys, I'm getting this strange error in Qt while debugging .. Here's whats happening: I am debugging inside this function/method which is part of a class named Canvas. Now within this function, I should be able to access all of this class's variables, etc .. since the access request is coming from within the same class. 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 within this function, the program crashes ... Can someone tell me what is happening here ?
tbscope
25th June 2010, 18:19
Can you post your code?
krzysiek2805
13th September 2011, 21:09
I have the same problem as ahmadka. 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();
}
Can you help me?
ChrisW67
13th September 2011, 23:01
I have the same problem as ahmadka. When I try to access any such variable "aktualnyGracz" or another variable within this function, the program crashes.
This might be of interest:
http://stackoverflow.com/questions/5380663/upgrading-gdb-for-use-in-qt-creator
poporacer
14th September 2011, 01:18
I don't see anywhere in your code where you declare or define aktualnyGracz
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.