Re: Gtk::Main and Glib::OptionContext
- From: "Murray Cumming" <murrayc murrayc com>
- To: "Russel Winder" <russel russel org uk>
- Cc: GTKmm List <gtkmm-list gnome org>
- Subject: Re: Gtk::Main and Glib::OptionContext
- Date: Wed, 27 Sep 2006 08:18:02 +0200 (CEST)
> The reference manual seems to suggest that the following makes sense:
>
> try { Gtk::Main application ( ac , av , context ) ; }
> catch ( Glib::OptionError e ) { std::cout << e.what ( ) << std::endl ;
> return 1 ; }
It's unlikely to be the problem (and I haven't read this whole thread
yet), but you should catch exceptions by const reference:
catch (const Glib::OptionError& e )
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]