Hi to all!
Just a question on timers.
Is it possible that an application becomes so busy that a QTimer never triggers?
An example is:
---------------------------------
...
sqlalarm = true;
QTimer::singleShot(3000, this, SLOT(change_alarm()));
while(sqlalarm)
{
mysql_real_query(&mysql, comando.constData(), comando.size());
}
...
---------------------------------
---------------------------------
...
void PDialog::change_alarm()
{
sqlalarm = false;
}
...
---------------------------------
My suspect is that the query it performs on the mysql database (it is an INSERT statement, just to see how many inserts can be done in a fixed amount of time; in this case 3 secs.) takes too much CPU and this is the reason for which the QTimer doesn't trigger.
Consider that I'm pretty newby to QT, so probably I'm writing a stupid consideration.
Anyway the problem persists and I'm not able to stop inserting records in the database.
Any help is very welcome.
Thanks.
Bookmarks