Georg Baum wrote:
for example when i inset a citation

lyx: Disabling LyX socket.
Assertion triggered in __thiscall lyx::support::FileName::FileName(const class s td::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) by failing check "!contains(name_, '\\')" in file ..\..\..\..\src\support\fi
lename.C:45
LyX: Attempting to save document newfile15.lyx
  C:/Documents and Settings/Edwin Leuven/newfile15.lyx.emergency
   Save seems successful. Phew.

As discussed recently this is a problem where a call of os::internal_path() is missing. Sorry, I can't help you here. What you (or some other windows user) needs to do is to find out where this filename comes from and add the missing internal_path call

thanks, the attached solves the crash. is this the correct way to do it?
Index: path.C
===================================================================
--- path.C      (revision 16186)
+++ path.C      (working copy)
@@ -16,11 +16,11 @@
 #include "support/path.h"
 #include "support/filename.h"
 #include "support/lyxlib.h"
+#include "support/os.h"
 
 
 using std::string;
 
-
 namespace lyx {
 namespace support {
 
@@ -28,7 +28,7 @@
        : popped_(false)
 {
        if (!path.empty()) {
-               pushedDir_ = getcwd();
+               pushedDir_ = os::internal_path(getcwd());
 
                if (pushedDir_.empty() || chdir(FileName(path))) {
                        /* FIXME: throw */

Reply via email to