cic
14th August 2013, 15:34
I have no idea what is the problem. The code is below:
ps: the way Qt::DirectConnection is no problem.
loop.connect(this, SIGNAL(postData(int)), this, SLOT(getData(int)), Qt::QueuedConnection);
for (int i = 0; i < TEN_MILLION; i++) {
emit postData(10);
}
loop.exec();
Here in the debugger I can see mostly the program crashed when i around 5 million.
ps: the way Qt::DirectConnection is no problem.
loop.connect(this, SIGNAL(postData(int)), this, SLOT(getData(int)), Qt::QueuedConnection);
for (int i = 0; i < TEN_MILLION; i++) {
emit postData(10);
}
loop.exec();
Here in the debugger I can see mostly the program crashed when i around 5 million.