Jump to content

Interpreter::ExecuteFile() read access violation.


Crazycarpet
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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.

  • Upvote 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...