I am not actually using a timer :) I wish this was the case though!
I have an while loop like so:
@
void newThread::run()
while (t_thread){ // inifinite loop
... // do things
... // do things
msleep(18);
}
}
@
I have calculated that it takes about 2 mS to execute the code that I am doing using the Qt mS timer. On application close, I just toggle the boolean and wait for the thread to finish cleanly before I terminate.
my background has been C all through school mainly for mp's as well as the linux OS, so the object oriented programming in C++/Qt is new to me this year and i'm still learning "its ways" :)
And from what Volker has stated before, does Qt allocate memory differently that what the underlying c++ would do for using standard c++ types (doubles, ints, ect.)? I can understand if the memory was being tampered with, but the memory location of the single double should be able to be read from anywhere, anytime, from whomever if it does indeed exist. I might be wrong since I am not sure what Qt does in the background or how it deals with it.