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.