<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
On 23.12.2014 16:59, Christophe Devalland wrote:<br>
</div>
<blockquote
cite="mid:CAA5vxo-d5V_jVgWgdiMGL2mudMe5XujZcC+f8fESpk0dFLEK9A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">I've already tried to add a lpeg.dll
file (that I compiled against lua5.2) into the texworks
directory but I had an error.<br>
<div>With your latest release (r1390) I have the same
lua5.2's error : "multiple Lua VMs detected". But there is
no crash.<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Yes. This happened with the old build system (which still statically
linked lua). The new system is used only from r1391 onwards (which I
just uploaded).<br>
<br>
<blockquote
cite="mid:CAA5vxo-d5V_jVgWgdiMGL2mudMe5XujZcC+f8fESpk0dFLEK9A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>Other users had this error and solved it : <a
moz-do-not-send="true"
href="http://stackoverflow.com/questions/14213559/lua5-2s-error-multiple-lua-vms-detected">http://stackoverflow.com/questions/14213559/lua5-2s-error-multiple-lua-vms-detected</a><br>
</div>
<div>If I understand, you statically included lua5.2 library
in texworks.exe and lpeg.dll call lua52.dll, so there is
now two lua engines.<br>
</div>
<div>There are probably two ways to solve this issue :<br>
</div>
<div>1) statically include lpeg.dll in teworks ! (only 40KB
when I compile it and, as you said, very usefull to parse
expressions with texworks !)<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Yes, I considered this, but it's not very scalable (in case other
users start requesting other modules, etc.).<br>
<br>
<blockquote
cite="mid:CAA5vxo-d5V_jVgWgdiMGL2mudMe5XujZcC+f8fESpk0dFLEK9A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>2) dynamically link texworks.exe against lua52.dll,
then there will be only one lua engine for both
texworks.exe and lpeg.dll. But you would have to add
lua52.dll in your package.<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
That's the path I chose.<br>
<br>
<blockquote
cite="mid:CAA5vxo-d5V_jVgWgdiMGL2mudMe5XujZcC+f8fESpk0dFLEK9A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
Note that it should in principle be possible to use other
modules as<br>
well, but I don't know exactly about the possible
compatibility issues<br>
(e.g., does it need to be compiled with the same compiler?
Does it need<br>
to be the same Lua version?). I tried briefly with some
precompiled Lua<br>
5.1 libraries I got off the internet which caused Tw to
crash.<br>
</blockquote>
<div><br>
</div>
<div>idem for me. You used lua52 for texworks (isn't it ?)
and it crash with a lua51 dll<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Yes, it's Lua 5.2.2 for the Windows builds at the moment.<br>
<br>
Kind regards,<br>
Stefan<br>
</body>
</html>