QtD segfaults on showing messagebox
simendsjo
simen.endsjo at pandavre.com
Mon May 16 14:24:52 PDT 2011
This happens on Win7 32 bit using dmd 2.053 and Qt 2010.05
import std.stdio;
import qt.gui.QMessageBox;
import qt.gui.QApplication;
int main(string[] args) {
auto app = new QApplication(args);
// comment out the messagebox, and it doesn't crash
QMessageBox.critical(null, tr("This is visible"), tr("But not this"));
return app.exec();
}
Compiling with warnings shows a _lot_ of warnings from QtD...
C:\temp>dmd -debug t.d qtdcore.lib qtdgui.lib
C:\temp>t
object.Error: Access Violation
----------------
4F1C9C
4F1B13
46699A
46699A
49F9A4
4CF4E8
4CF527
4CF123
5283C5
52831C
----------------
More information about the Digitalmars-d-learn
mailing list