Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run example: (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION) #212

Closed
Misaka299 opened this issue Dec 26, 2021 · 1 comment
Closed

run example: (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION) #212

Misaka299 opened this issue Dec 26, 2021 · 1 comment

Comments

@Misaka299
Copy link

Misaka299 commented Dec 26, 2021

cargo.toml

[package]
name = "luatest"
version = "0.1.0"
edition = "2021"
#build = "build.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
hlua = "0.3"

main.rs

extern crate hlua;

use hlua::Lua;

fn main() {
    let mut lua = Lua::new();
    let x: u32 = lua.execute("return 6 * 2;").unwrap();    // equals 12
    println!("ssss{}", x);
}

log

C:/Users/xm111/.cargo/bin/cargo.exe run --color=always --package luatest --bin luatest
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target\debug\luatest.exe`
error: process didn't exit successfully: `target\debug\luatest.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Process finished with exit code -1073741819 (0xC0000005)

Why is that?

@Misaka299
Copy link
Author

There is a problem with my development environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant