[Qgis-developer] QGis 1.6.0 Debug error

sttsx ssolak at tai.com.tr
Mon May 9 04:53:13 EDT 2011


Hi, 

I'm stuck with a debugging  error. 
I implemented a simple code with qgis 1.6.0 and qt 4.7.2 libraries and
compiled with visual Studio 2005.
It works fine in release mode. In debug mode, it crashes while creating the
window with the message below.
I've searched the forum about this error, but I couldn't find anything
helpful.
Any help would be appriciated. 
Thanks..
________________
Debug Error
Program:...
Module:4.7.2
Fine:global\qglobal.cpp
Line:2262

QWidget:Must construct a QApplication before a QPaintDevice.
_________________

The main function of my appliaction is:

int main(int argc,char *argv[]){
QgsApplication app(argc,argv,TRUE);  
MainWindow* mypMainWindow = new MainWindow();   //
mypMainWindow->show();
app.exec();
}

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/QGis-1-6-0-Debug-error-tp6343550p6343550.html
Sent from the qgis-developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list