Am 31.08.2010 08:02, schrieb Stephan Witt:

I guess it's my change r35193.

Please try attached patch.

This fixes the setenv compilation errors -> I committed it.

However, this compilation error remains:

10>..\..\src\LyX.cpp(288) : error C4101: 'message' : unreferenced local variable

The attached patch fixes also this error for me (debug and release mode). It seems that MSVC doesn't allow to use empty catched exceptions. OK to put it in?

thanks and regards
Uwe
Index: LyX.cpp
===================================================================
--- LyX.cpp	(revision 35247)
+++ LyX.cpp	(working copy)
@@ -285,7 +285,14 @@
 	try {
 		init_package(os::utf8_argv(0), string(), string(),
 			      top_build_dir_is_one_level_up);
-	} catch (ExceptionMessage const & message) {}
+	} catch (ExceptionMessage const & message) {
+		if (message.type_ == ErrorException) {
+			Alert::error(message.title_, message.details_);
+			lyx_exit(1);
+		} else if (message.type_ == WarningException) {
+			Alert::warning(message.title_, message.details_);
+		}
+	}
 	locale_init();
 
 	// Here we need to parse the command line. At least

Reply via email to