Hi guys
Have been using this code with no problem up until now.
Now its suddenly started crashing when it gets to aMB.exec();
with memory bad access.
Signal name :
EXC_BAD_ACCESS
Has anyone got any ideas what might be happening.
I have cleaned and rebuilt and even turned the machine off and back on again.
Am using Mac OS X Lion.
Thanks.
Jeff
void JB_Utilities
::debugMB(const QString &text,
Qt::WindowModality aWindowModality)
{
cout << "ERROR: " << qPrintable(text) << endl;
"ERROR",
text,
parent);
aMB.setWindowModality(aWindowModality);
aMB.exec();
}
void JB_Utilities::debugMB(const QString &text,
QWidget* parent,
Qt::WindowModality aWindowModality)
{
cout << "ERROR: " << qPrintable(text) << endl;
QMessageBox aMB(QMessageBox::Warning,
"ERROR",
text,
QMessageBox::Ok,
parent);
aMB.setWindowModality(aWindowModality);
aMB.setDefaultButton(QMessageBox::Ok);
aMB.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks