I have no idea what is the problem. The code is below:
ps: the way Qt:
irectConnection 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();
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();
To copy to clipboard, switch view to plain text mode
Here in the debugger I can see mostly the program crashed when i around 5 million.
Bookmarks