From: Richard Heck Date: Tue, 3 Jun 2014 17:35:18 +0000 (-0400) Subject: Flush stream more often to help figure out where the mystery crash X-Git-Tag: 2.1.1~30 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b9db0c132154346b36201c8c3216a70e7ad40ab8;p=features.git Flush stream more often to help figure out where the mystery crash originates. (cherry picked from commit 5536b0c7fef6115d82437285fd3e6b17ae9ccc39) --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 4d9b37c1f7..2ac7dd01b7 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1669,6 +1669,9 @@ void Paragraph::write(ostream & os, BufferParams const & bparams, os << "\\begin_inset "; inset->write(os); os << "\n\\end_inset\n\n"; + // FIXME This can be removed again once the mystery + // crash has been resolved. + os << flush; column = 0; } } @@ -1706,6 +1709,9 @@ void Paragraph::write(ostream & os, BufferParams const & bparams, flushString(os, write_buffer); os << "\n\\end_layout\n"; + // FIXME This can be removed again once the mystery + // crash has been resolved. + os << flush; } diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index b124743446..2e0bc7167d 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -1517,6 +1517,9 @@ void Tabular::write(ostream & os) const cell_info[r][c].inset->write(os); os << "\n\\end_inset\n" << "\n"; + // FIXME This can be removed again once the mystery + // crash has been resolved. + os << flush; } os << "\n"; } diff --git a/status.21x b/status.21x index da94c4783e..7c4e96275d 100644 --- a/status.21x +++ b/status.21x @@ -32,6 +32,9 @@ What's new filename (tmp-oldfile.lyx) and only deletes the original file once the new file has successfully been written. +- We now flush the output stream more frequently, as a temporary measure + to help us gather information about the crash mentioned above. + * TEX2LYX IMPROVEMENTS