Adding the bycopy pragma fixed it. I must say, that's a pretty subtle requirement and it could do with a more prominent place in the documentation of the FFI.
- Difficulty writing wrapper using FFI cmacmackin
- Re: Difficulty writing wrapper using FFI cmacmackin
- Re: Difficulty writing wrapper using FFI Stefan_Salewski
- Re: Difficulty writing wrapper using FFI cmacmackin
- Re: Difficulty writing wrapper using FFI Stefan_Salewski
- Re: Difficulty writing wrapper using... cmacmackin
- Re: Difficulty writing wrapper u... Stefan_Salewski
- Re: Difficulty writing wrapp... cmacmackin
- Re: Difficulty writing wrapp... Stefan_Salewski
- Re: Difficulty writing wrapp... cmacmackin
- Re: Difficulty writing wrapp... Araq
- Re: Difficulty writing wrapp... yglukhov
- Re: Difficulty writing wrapp... cmacmackin