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.
Chris Cain via Digitalmars-d-learn Sat, 07 Jun 2014 13:25:28 -0700
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.