Re: Gtk::Main and Glib::OptionContext



> 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]