great detective work!!
this fixes the crash on my side, so this gets an ok from me.
Stefan Schimanski wrote:
The following patch fixes this problem for the cmake build system. I
have not checked the other build systems, maybe similar fixes are needed
there.
The problem basically is that in the inline functions a different Font
class was used than in the .cpp files. This was leading to these very
strange errors.
Stefan
@Peter: ok to commit? Any comment?
with attached doc.
backtrace:
tex2lyx.exe!boost::assertion_failed(const char *
expr=0x005b6c44, const char * function=0x005b6c50, const char *
file=0x005b6cc0, long line=315) Line 39 + 0x8 bytes C++
tex2lyx.exe!boost::shared_ptr<lyx::Layout>::operator->() Line
315 + 0x23 bytes C++
> tex2lyx.exe!lyx::TextClass::read(const lyx::support::FileName
& filename={...}, bool merge=false) Line 455 + 0x12 bytes C++
tex2lyx.exe!lyx::parse_preamble(lyx::Parser & p={...},
std::basic_ostream<char,std::char_traits<char> > & os={...}, const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
forceclass="") Line 502 C++
tex2lyx.exe!lyx::`anonymous
namespace'::tex2lyx(std::basic_istream<char,std::char_traits<char> > &
is={...}, std::basic_ostream<char,std::char_traits<char> > &
os={...}) Line 428 + 0x3e bytes C++
tex2lyx.exe!lyx::`anonymous namespace'::tex2lyx(const
lyx::support::FileName & infilename={...},
std::basic_ostream<char,std::char_traits<char> > & os={...}) Line 462
+ 0x10 bytes C++
tex2lyx.exe!lyx::tex2lyx(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
infilename="C:/_projects/profs3/internal.tex", const
lyx::support::FileName & outfilename={...}) Line 494 + 0x38 bytes C++
tex2lyx.exe!main(int argc=2, char * * argv=0x003d52f8) Line
554 + 0x35 bytes C++
tex2lyx.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C
tex2lyx.exe!mainCRTStartup() Line 403 C
kernel32.dll!7c816fd7()
<internal.tex>