Running a delegate inside a C function

Chris Cain via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 7 13:21:24 PDT 2014


On Saturday, 7 June 2014 at 20:04:41 UTC, Denis Martinez via 
Digitalmars-d-learn wrote:
>     int ret = jack_set_process_callback(handle_, f, &dg);

&dg here is giving you a pointer to the dg variable sitting on 
the stack. The stack is almost certainly getting overwritten at 
some point.


More information about the Digitalmars-d-learn mailing list