On Thursday, 24 April 2014 at 20:09:38 UTC, Justin Whear wrote:
You can use GC.addRoot() from core.memory before passing the pointer tothe C function, then use GC.removeRoot in your myFree function.
Perfect, thanks!
Lars T. Kyllingstad via Digitalmars-d-learn Thu, 24 Apr 2014 13:46:37 -0700
On Thursday, 24 April 2014 at 20:09:38 UTC, Justin Whear wrote:
You can use GC.addRoot() from core.memory before passing the pointer tothe C function, then use GC.removeRoot in your myFree function.
Perfect, thanks!