Ask Your Question

Revision history [back]

I'd suggest you thread your system. I cannot tell if you have, for you did not paste your code.

Threading would enable you to keep the variables that you from both callbacks to be in a common class. That would get rid of your segmentation fault.