YUI crashes if loadUI is called with thread enabled
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Silly helloworld example, maybe (sure) I'm wrong in something but next code crashes: // Filename : HelloWorld.cc #include "YUI.h" #include "YWidgetFactory.h" #include "YDialog.h" #include "YLayoutBox.h" #include "YEvent.h" #include "YUILoader.h" int main( int argc, char **argv ) { YUILoader::loadUI(true); YDialog * dialog = YUI::widgetFactory()->createPopupDialog(); YLayoutBox * vbox = YUI::widgetFactory()->createVBox( dialog ); YUI::widgetFactory()->createLabel ( vbox, "Hello, World!" ); YUI::widgetFactory()->createPushButton( vbox, "&OK" ); dialog->waitForEvent(); dialog->destroy(); } Any help? Thanks, Angelo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJ6uNAACgkQqEs9DA4DquCSJgCfcWTHM1ZWHssRYRLvK8TwG1v3 s38AniOIZo7V94JlIYhDodv+4fuVAqHk =U5CX -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: libyui-devel+unsubscribe@opensuse.org To contact the owner, e-mail: libyui-devel+owner@opensuse.org
On Wed, Nov 06, 2013 at 10:47:01PM +0100, Angelo Naselli wrote:
Silly helloworld example, maybe (sure) I'm wrong in something but next code crashes: [...] Any help?
I am just a beginner and I don't know, but maybe the compilable version attached and the messages it produces ring a bell with someone: qMessageHandler(): <libqt-fatal> QWidget: Must construct a QApplication before a QPaintDevice GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init() I tested on openSUSE-12.3 with libyui from https://build.opensuse.org/project/show?project=YaST%3AHead -- Martin Vidner, Cloud & Systems Management Team http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
participants (2)
-
Angelo Naselli
-
Martin Vidner