areche / luaforwindows

Automatically exported from code.google.com/p/luaforwindows
0 stars 0 forks source link

A LuaInterface version 2.0.3 compatible with LuaForWindows #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Summary
-------
The file attached to this issue contains a VS2005 solution of the latest 
LuaInterface release 2.0.3 patched to be compatible with LuaForWindows.

Installation
------------
Replace the files luanet.dll and LuaInterface.dll in your LuaForWindows clibs 
directory with the files available in the bin/release subfolder of the attached 
ZIP file.

Details
-------
LuaForWindows includes LuaInterface version 1.5.3, because newer versions 
include a fully .NET managed Lua interpreter which is not compatible with 
LuaForWindows binaries.

LuaInterface 1.5.3 contains some bugs fixed in current version 2.0.3. The most 
important among others is LuaInterface 1.5.3 provides access to private members 
of .NET classes. See LuaInterface project page for details.

Find attached a VS2005 solution containing a modified version of the latest 
LuaInterface 2.0.3 release which uses the native Lua51.dll and is therefore 
compatible with LuaForWindows.

@LuaForWindows maintainers:
- Please feel free to include this version of LuaInterface into future releases 
of LuaForWindows. If desired I'm also willing to maintain this LuaForWindows 
compatible version of LuaInterface (bugs, including future releases of original 
LuaInterface)

- The luanet.dll delivered with current LuaForWindows (5.1.4-40) is linked 
against MSVCRT 8.0 instead of MSVRT 8.0 SP1. This is no problem when used from 
Lua.exe, but makes a .NET application crashing with a C runtime assertion when 
LuaInterface.dll is used to integrate Lua into a .NET apllication. (luanet.dll 
is loaded by LuaInterface.dll when used from a .NET application).

Original issue reported on code.google.com by joerg.bl...@gmail.com on 13 Jan 2011 at 12:17

Attachments:

GoogleCodeExporter commented 8 years ago
Wow thanks so much for this! I will include it in the next release. I will also 
close the issue 15.

About maintaining this;
We should ask the developers of LuaInterface if we can have this version be 
hosted with there official source. I would gladly take your offer to maintain 
the code. I know I can not do it. I have no experience with .NET. Steve D. has 
been our resident expert on the .NET stuff. I just think the LuaInterface 
developers would like to have this version as well. We should see. I think they 
use GoogleCode now.

Original comment by rpusz...@gmail.com on 13 Jan 2011 at 2:30

GoogleCodeExporter commented 8 years ago
Issue 15 has been merged into this issue.

Original comment by rpusz...@gmail.com on 13 Jan 2011 at 2:30

GoogleCodeExporter commented 8 years ago
I will create a proper patch file to integrate this version into the 
LuaInterface source tree and provide it to the LuaInterface developers. But for 
this I will have to rearrange the source of my version to make it fit into the 
current LuaInterface source tree. Will take 2 or 3 weeks before I'll have some 
time to do so.

Original comment by joerg.bl...@gmail.com on 13 Jan 2011 at 8:41

GoogleCodeExporter commented 8 years ago
IMPORTANT:

The prebuilt binary luanet.dll depends on the latest patched version of the 
VS2005 SP1 runtime DLLs. Make shure you have the vcredist_x86.exe available 
here 
<http://www.microsoft.com/downloads/en/details.aspx?familyid=766a6af7-ec73-40ff-
b072-9112bab119c2&displaylang=en#Overview> installed
(The title states its an update for the ATL runtime libraries only, but its 
actually a full version of the latest MSVC80 SP1 runtime)

@rpusztai:
Please make sure the version linked above is part of the next LuaForWindows 
setup version.

THANK YOU MICROSOFT!
Installing updates of the C libraries through windows update behind my back is 
what all we developers need to fill our boring days. Especially if it also 
changes runtime dependency DLL versions without any notice.

Original comment by joerg.bl...@gmail.com on 14 Jan 2011 at 2:57

Attachments:

GoogleCodeExporter commented 8 years ago
I have an working environemnt with lua and luainterface in .NET40 and build 
also a NET4.0 luanet.dll version with VS2010. The error regarding MSVCRT 8.0 is 
gone, but now I get the message 
### Der Prozeudureinsprungspunkt "lua_newuserdata" wurde in der DLL "lua51.dll" 
nicht gefunden ###

Other clibs works well. I made some changes to the lua and luaniterface code, 
so I'm not sure if these changes are the problem. I have no idea why the 
"lua_newuserdata" is not found, it's defintely in the lua code.

Original comment by b...@gmx.de on 8 Feb 2011 at 1:03