Trouble passing struct to C function

This is a problem. Make them immutable.

If you really need to update them, you could reconstruct the object. Or you could use this:

1 Like