Crazycarpet Posted April 6, 2017 Share Posted April 6, 2017 Before I post any source code I wanted to ask the community if anyone's ever experienced this issue before.... in one of my projects (the other has identical code to this point!) when I go to execute Main.lua with the interpreter a read access violation is thrown, here's what I know about it so far: 1) It started happening after linking against a new lib. (However, I don't think it's this because the working version links against the same lib.) 2) No code changes were made from the time this app was working to now. 3) I'm not on the LE beta. 4) The Main.lua file exists!! 5) The file Main.lua contains no lua errors. 6) It does not seem to be a file permissions issue. NOTE: The same access read violation happens even when the App class is replaced w/ the default one from the LE template. And just to reiterate, my other project that does work uses the exact same code up to this point, and it's Main.lua file is character-for-character identical. Edit: Solved. I must've accidentally removed the ToLua bindings cpp file from one of my projects! Quote Link to comment Share on other sites More sharing options...
Josh Posted April 6, 2017 Share Posted April 6, 2017 What line does the error occur on? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Crazycarpet Posted April 6, 2017 Author Share Posted April 6, 2017 What line does the error occur on? if (Interpreter::ExecuteFile("Scripts/Main.lua")) { Throws an access read violation. I feel like it's related to my toLua++ bindings, but I don't see why one project works and the other does not then.. Edit: Figured it out! Sorry! It seems my toLua++ bindings were somehow removed from the project! I never even thought to check this. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.