Reply
Thread Tools
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#1
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 ?
 
Posts: 1 | Thanked: 0 times | Joined on Aug 2010
#2
Without the code i have to make a guess at it, but what happened to me when i had that error is that i had created the instance of the class in another function like this

ClassName* className = new ClassName();

when you then try to access it from another function, it does not exist anymore. The instance is created in that function and is only accessible there.

What solves it, is having the
ClassName* className
part in the headerfile

and then in the sourcecode have
className = new ClassName();

Hope this helps.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:04.