Binding to C - Arrays and Access Violation

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 2 20:09:01 PST 2016


On Wednesday, 3 February 2016 at 00:28:24 UTC, biozic wrote:
>
> Is grad allocated in the D code? If so, it could have been 
> collected because the GC lost track of its use when passing to 
> and from the C code. Or is grad owned by the C code? If so, 
> either there is a bug in the library or it's misused, because 
> its memory has been freed/has never been allocated/has gone out 
> of scope.

grad is only created in the C code. I don't pass it myself.


More information about the Digitalmars-d-learn mailing list