I skimmed your wrapper code and your example code and unfortunately couldn't find a bug. However your `cast`'s can be avoided if you start out with the `ptr UncheckedArray` types.
- FFI - ipopt solver - malloc(): corrupted top size mantielero
- Re: FFI - ipopt solver - malloc(): corrupted top size mantielero
- Re: FFI - ipopt solver - malloc(): corrupted top size Araq
