So, got it :-) The problem is this neat trick:* This class is just a dummy version of that in the main LyX source tree
* to enable tex2lyx to use LyX's textclass classes and not have to * re-invent the wheel.
in the Font.h of lyx2tex. Unfortunately the sizes of the objects are different. But as a member of TextClass this makes a difference if the inline functions of TextClass use the dummy Font from tex2lyx, but the implementation the real one from LyX. No patch yet... have to use the sun outside at the river first :-)
StefanP.S.: Is this a duplicate of the mail? Again I cannot see my previous one, although it shows up in the archive at http://marc.info/?l=lyx- devel&m=117966063615447&w=2 Are there any problems with the mailman?
Am 19.05.2007 um 23:16 schrieb Stefan Schimanski:
There is something really strange going on. I am trying to debug the problem for half an hour now as it also shows up on my machine. The layoutlist_ containter looks fine before the "cit = begin()" call in TextClass::read. But when I step into the begin() function suddenly the start value of the layoutlist_ container turns into 0x0. More precisely in TextClass::read tells me that layoutlist_::P_impl is at 0xbffff0c8. In the begin() call though it is shown at 0xbffff0e8 where the 0x0 is. This either smells like a compiler error or some memory corruption.Stefan Am 16.05.2007 um 13:42 schrieb Leuven, E.: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>
PGP.sig
Description: Signierter Teil der Nachricht