Skip to content

Instantly share code, notes, and snippets.

@vanhecke

vanhecke/info.md Secret

Last active June 16, 2017 14:58
Show Gist options
  • Save vanhecke/5d7890cbca64aa604de24a215e9f8a01 to your computer and use it in GitHub Desktop.
Save vanhecke/5d7890cbca64aa604de24a215e9f8a01 to your computer and use it in GitHub Desktop.
123123123

asdf

asdfasdf asdf

@[Link("library")]
lib LibLibrary
fun spawn_object = exp_spawnObject(name: UInt8*) : Pointer(Int64)
fun rename_object = exp_renameObject(target: Pointer(Int64), name: UInt8*)
end
obj = LibLibrary.spawn_object("Jon")
LibLibrary.rename_object(obj, "John")
@vanhecke
Copy link
Author

vanhecke commented Jul 22, 2016

Error:

Pointer(Int64)@0x7febb95002d0
Invalid memory access (signal 11) at address 0x0
[4537402811] *CallStack::print_backtrace:Int32 +107
[4537395735] __crystal_sigfault_handler +55
[140735853057322] _sigtramp +26
[4537626973] exp_renameObject +45
[4537383007] __crystal_main +1231
[4537395480] main +40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment