I am looking for some help with segfault when passing a struct to a C-API via `@cc

Solved by @mkitti
The struct I was passing in needed a buffer. I used a Julia array directly as a field in that struct, when in fact I needed to use pointer(array).
Thanks!

2 Likes