GNOME Bugzilla – Bug 365038
Add support for glibmm compiled with --enable-api-exceptions=no
Last modified: 2011-01-16 23:36:13 UTC
The normal signature for operations which can fail in gnome-vfsmm is something like this: void foo(...) throw(Gnome::Vfs::exception); When GlibMM is compiled with the options to omit C++ exception handling, the technique used in gnome-vfsmm would be similar to the C-language use of GError's, with the error being handled by a trailing auto_ptr: void foo(..., std::auto_ptr<Gnome::Vfs::exception>& error); I'm attaching a patch to add this support.
Created attachment 75388 [details] [review] Add support for GlibMM configure-option "--enable-api-exceptions=no" Patch is against gnome-2-14 CVS tag.
Did you solve the crash that you mentioned on the mailing list?
Yes, it stopped appearing once I switched to using Gnome::Vfs::exception as the error object.
Committed to CVS HEAD. Thanks. Tell me if you need a tarball release soon. Please remember to patch the ChangeLog in future.