Hi.
I'd like to up this post : doesn't seem to have any solution here and, as it happens, i have the exact same problem : the setupUi method crashed without apparent reason.
And this only happen on Windows and on Release mode (the bug isn't reproductible on Linux, or on Windows in debug mode).
I'm using Qt4.8.0, and I'm compiling with the MinGW provided with QtCreator.
Here is some code from the header :
@#ifndef LEVELEDITOR_H
#define LEVELEDITOR_H
#include <QWidget>
#include "texturemanager.h"
#include "objectmanager.h"
namespace Ui {
class LevelEditor;
}
class LevelEditor : public QWidget
{
Q_OBJECT
public:
explicit LevelEditor(QWidget *parent = 0);
~LevelEditor();
public slots:
void TextureAdded(QString);
private slots:
void PickNewTexture(void);
void TextureListIndexChanged(int);
void TextureListUpdated(void);
private:
Ui::LevelEditor *ui;
TextureManager _textureManager;
ObjectManager _objectManager;
AnimationManager _animationManager;
QString _currentLevel;
};
#endif // LEVELEDITOR_H@
And here is the constructor :
@LevelEditor::LevelEditor(QWidget *parent) : QWidget(parent), ui(new Ui::LevelEditor)
{
qDebug() << "test1";
ui->setupUi(this);
qDebug() << "test2";
}@
And here goes the application output :
@test1
The program has unexpectedly finished.
C:\Users\Lovestospooge\Documents\Editor-build-desktop-Qt_4_8_0__4_8_0__Release\release\Editor.exe exited with code -1073741819@
If, during the past half year, you found something that may cause this, I'd be glad to know.
If not, then you're not the only one who met with this problem. And it may be interesting to get to the bottom of it :) !