Bruno Luciani wrote: > > Works ok here, after building deb package for last SVN > > But the same error 6005 appears in a little aplication made using hbqt > > starts an then close , at sometimes works ok and in a lot of ocations > > gime this error: > > Unrecoverable error 6005: Exception SIGSEGV at address 0x10004 > Called from QT_QAPPLICATION_EXEC(0) > Called from QAPPLICATION:EXEC(0) in ../../../TQApplication.prg > Called from MAIN(195) in ./source/us_editor_new.prg > br...@notebook:~/marinas-ide/editor/source$ >
hbqt_init()/exit() function are responsible to initiatate static s_app. QApplication() must ever be called as QApplication():new() and never as QApplication(). Also application must not initiate init/exit procedures to call QApplication. Function Main() Local oWnd local qApp qApp := QApplication():new() /* ONLY IF YOU NEED TO SET APPLICATION WIDE METHODS */ oWnd := QMainWindow():new() // do other commands // To set application wide variables, qApp:setOverrideCursor() // Initiate an event loop and exit from this event loop will call the s_app:quit() return nil I mean you must not call qApp:exec() and qApp:quit() as it is handlled on .cpp level. This was a majot cause of GPF at exit. ----- enjoy hbIDEing... Pritpal Bedi http://hbide.vouch.info/ -- View this message in context: http://n2.nabble.com/hbide-rev-14350-startup-runtime-error-tp4930832p4931862.html Sent from the harbour-devel mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour