Strange crash when using lxp library
Hello, I have a strange problem. I tried to prepare the simplest example. Let's have a table utility in 'Table-U_.lua' (to be placed to LUA_PATH): ---- table.fromExcelXML = function(fn) ... tabs[true] = true -- Comment this line to make it work(?!) [1] ... end if not context then require "lxp" print("\n777777") table.fromExcelXML("InzSiteLitom_Nove.xml") print("\n888888") end ---- When you call it from the command line, it works fine: ---- C:\Lukas\ConTeXt\TestDDv>lua -e require'table-u_' 777777 888888 ---- When used in a context file: ---- \mainlanguage[cz] \enableregime[cp1250] \startluacode require "lxp" require "Table-U_" print("\n111111") table.fromExcelXML("InzSiteLitom_Nove.xml") print("\n222222") \stopluacode \starttext AAA \stoptext ---- it crashes with an exception in luatex: " Exception "unknown software exception" 0xc000000d" at 0x1028e4c3. ... " Would anyone have an idea what causes the program crash? I also observed that commenting a line [1] in the "Table-U_.lua" makes context work; but the place seems "innocent", so I have no idea what can cause ctx crashing. Could anyone test the code, respectively give a hint how to make the [simplified] code work? All ideas are welcome. Thank you in advance. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
participants (1)
-
Procházka Lukáš Ing. - Pontex s. r. o.