Okay, this is silly. I found that TLua doesn't contain "RegisterMethod" so I had to use "LuaRegister" instead, but now, after changing a few things for compatibility I now get this when running the executable file:
Code:
C:\FPC\projects\luaexec>luaexec
An unhandled exception occurred at $1000C33A :
EAccessViolation : Access violation
$1000C33A
$00407067
$004070CE
$004013D2
I updated the Lazarus project though I am not using that directly, just using straight FPC instead. It might be my register function for the CRT "library" but I really don't know. You can get the whole project from here. What'd I do this time? :?
Also, I noticed numerous errors in my functions and the IFDEF clause the newer definition in the source is much better.
EDIT:
This is screwy. It's telling me that it doesn't want a pointer/address to the function, then I remove the @ symbol it immediately complains of too few arguments. What's going on!? This doesn't even raise an error in the LuaCRT unit, but in the main one it does. :?
Bookmarks