songnailiang
16th April 2015, 07:24
There's one confused err in my code.
pseudo code as follows:
connect(mysignal, myslot);
connect(mtsignal_2, myslot);
void myslot(QString msg)
{
textEdit->append(msg);
qApp->processEvents(); //if comment this line, no crash, but other function also use this to prevent UI hang
}
void func()
{
for(i=0;i<n;i++)
emit mysignal;
}
[problem] when i increase to some fixed value, exe crash, err stack overflow in ntdll.dll
how to solve this bug?
Thanks in advance!
pseudo code as follows:
connect(mysignal, myslot);
connect(mtsignal_2, myslot);
void myslot(QString msg)
{
textEdit->append(msg);
qApp->processEvents(); //if comment this line, no crash, but other function also use this to prevent UI hang
}
void func()
{
for(i=0;i<n;i++)
emit mysignal;
}
[problem] when i increase to some fixed value, exe crash, err stack overflow in ntdll.dll
how to solve this bug?
Thanks in advance!