Hello,

I encountered problem loading WinCon.dll (a module that I wrote and I've been 
using for several years):

----
lua error       > lua error on line 3 in file 
d:/Lukas/Jobs/D10-036/10-037.SO/Geom.Smo/~/WinTest.mkiv:

error loading module 'WinCon' from file 'd:\Lukas\Lua\52\WinCon.dll':
        Uvedenř modul nebyl nalezen.

stack traceback:
        [C]: in ?
        [C]: in function 'cpath specification'
        ...ta/tex/texmf-context/tex/context/base/mkiv/l-package.lua:291: in 
function '?'
        ...ta/tex/texmf-context/tex/context/base/mkiv/l-package.lua:318: in function 
<...ta/tex/texmf-context/tex/context/base/mkiv/l-package.lua:310>
        [C]: in function 'requiem'
        ...ta/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: in function 
<...ta/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:165>
        (...tail calls...)
        [ctxlua]:2: in main chunk
----

My sample "pure" run looks:

"
d:\Lukas\Jobs\D10-036\10-037.SO\Geom.Smo\~>set 
PATH=d:\Ctx-Beta\tex\texmf-mswin\bin

d:\Lukas\Jobs\D10-036\10-037.SO\Geom.Smo\~>set LUA_CPATH=d:\Lukas\Lua\52\?.dll

d:\Lukas\Jobs\D10-036\10-037.SO\Geom.Smo\~>context.exe WinTest.mkiv --batchmode

mtx-context     | run 1: luatex 
--fmt="d:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--interaction="batchmode" --jobname="WinTest" 
--lua="d:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line 
--c:batchmode --c:currentrun=1 --c:fulljobname="./WinTest.mkiv" --c:input="./WinTest.mkiv" --c:kindofrun=1 --c:maxnofruns=9 
"cont-yes.mkiv"
This is LuaTeX, Version 1.0.5 (TeX Live 2017/W32TeX)
 system commands enabled.
open source     > level 1, order 1, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2017.04.02 19:51 MKIV beta  fmt: 2017.4.5  int: 
english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source    > level 2, order 2, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'WinTest', input './WinTest.mkiv', result 
'WinTest'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name 
'd:/Lukas/Jobs/D10-036/10-037.SO/Geom.Smo/~/WinTest.mkiv'

lua error       > lua error on line 3 in file 
d:/Lukas/Jobs/D10-036/10-037.SO/Geom.Smo/~/WinTest.mkiv:

error loading module 'WinCon' from file 'd:\Lukas\Lua\52\WinCon.dll':
        Uvedenř modul nebyl nalezen.

stack traceback:
        [C]: in ?
        [C]: in function 'cpath specification'
        ...ta/tex/texmf-context/tex/context/base/mkiv/l-package.lua:291: in 
function '?'
        ...ta/tex/texmf-context/tex/context/base/mkiv/l-package.lua:318: in function 
<...ta/tex/texmf-context/tex/context/base/mkiv/l-package.lua:310>
        [C]: in function 'requiem'
        ...ta/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: in function 
<...ta/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:165>
        (...tail calls...)
        [ctxlua]:2: in main chunk

1     \startluacode
2       require "WinCon"
3 >>  \stopluacode
4
5     \starttext
6       A
7     \stoptext
8

fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
backend         > xmp > using file 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 3, name 
'd:/Lukas/Jobs/D10-036/10-037.SO/Geom.Smo/~/WinTest.mkiv'
close source    > level 1, order 3, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
d:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.000 seconds, 0 scans with scantime 
0.000 seconds, 0 shared scans, 9 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 402 modules (0.206 sec), 91 tables 
(0.012 sec), 493 chunks (0.218 sec)
mkiv lua stats  > traced context: maxstack: 1227, freed: 0, unreachable: 1227
mkiv lua stats  > cleaned up reserved nodes: 49 nodes, 9 lists of 447
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 49 
glue_spec, 3 attribute_list, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 7 unique task lists, 6 instances 
(re)created, 32 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 139 direct, 248 indirect, 387 total
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: WinTest.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.028, afm 1.512, tfm 1.000, 4 instances, 
load time 0.152 seconds
mkiv lua stats  > used platform: mswin, type: windows, binary subtree: 
texmf-mswin
mkiv lua stats  > luatex banner: this is luatex, version 1.0.5 (tex live 
2017/w32tex)
mkiv lua stats  > control sequences: 45005 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 41 MB (ctx: 40 MB), 
hash type: lua, hash chars: min(32,40), symbol mask: utf (¤ä╬Á¤ç)
mkiv lua stats  > runtime: 0.46 seconds, 1 processed pages, 1 shipped pages, 
2.174 pages/second

mtx-context     | fatal error: return code: 1
"

- And WinText.mkiv has the following content:

----
\startluacode
  require "WinCon"
\stopluacode

\starttext
  A
\stoptext
----

Strange thing is that WonCon.dll with Ctx used to work for several years... 
What is the problem now?

I attached also the WinCon.dll (built with VS 2008 - Release version; zipped 
and ZIP renamed to PIZ).

Do I have to rebuild the WinCon.dll source?

Any answer would be appreciated...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.      | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

Attachment: WinTest.log
Description: Binary data

Attachment: WinTest.mkiv
Description: Binary data

Attachment: WinCon~.piz
Description: Binary data

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to