PDA

View Full Version : What means the "error n. 3" exit code?



glafauci
27th November 2010, 15:44
Hi, folks.

I have a strange problem. I design, successfully, one custom widget using the Qt approach. It works fine in QtDesigner, and, to develop it well, I write a simple app using the same widget (consisting in one class) declared as ax extension of an existing Qt widget.

When I finish to develop it, I create the plugin, and i develop a (second) simple app using the new widget. QtCreator create it fine, but when I launch it, I obtain the following message:


Starting C:\Documents and Settings\glafauci\Documenti\Programmi-QT\ProvaK-build-desktop\debug\ProvaK.exe...
C:\Documents and Settings\glafauci\Documenti\Programmi-QT\ProvaK-build-desktop\debug\ProvaK.exe exited with code 3

Now I start the debugger, that exits with the same message and this subsequent balloon:


"This application is requested the runtime to terminate it at an unusual way. Please, contact the application support team"


and, in the QtCreator's application output, I read



QWidget: Must construct a QApplication before a QPaintDevice

Anyone can help me?

Added after 41 minutes:

Well, I've solved it.

The problem is born mixing the release version of the widget with the debug version of the application.

That's enough to build correctly the versions to solve the problem.

Hi to all!! :) :)