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.

Reply via email to