On Thu, Oct 11, 2012 at 12:45 PM, Mike Parr <mikep...@live.com> wrote: > Hi - I'm new to Lua and wx as well. > I downloaded Lua 5.1, and was reading the wxlua manual 2.8.
Where did you download Lua 5.1 from? > Section 6.1 - How to run the samples. > > I use Windows, and found the instructions rather complicated (what is the $ - > I > guess it is the Unix prompt). > Anyway, I simply double-clicked on the sample files to run them! > So, I wondered if the manual is not up-to-date with the file associations set > up > by the latest Lua. I'm guessing that you are on MS Windows? That is surprising and not normal unless you have run some installer (perhaps the Lua 5.1 you speak of) that changed the default application to "open" *.lua files. wxLua does not change any file associations, registry entries, and takes the position of causing the least harm to people machines. It sounds like you are using someone else's lua.exe to require("wx"), meaning that the wx.dll will be loaded by lua.exe to provide the wxLua functionality. In order for this to work, without error, the lua.exe and wx.dll MUST be compiled using the SAME version and Lua 5.1 compilation settings. This requirement is nothing special to wxLua, but applies to dlls in general, they must all be "binary" compatible with each other. Note that slight mismatches between exes and dlls can lead to arbitrary crashes and this is why I do not recommend it. I DO recommend running the wxLua samples using the lua.exe that is provided by the wxLua binary packages since it is definitely binary compatible with wx.dll. Welcome to wxLua, I hope you enjoy it, - John ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users