On 3 August 2016 at 04:29, Alistair Leslie-Hughes <leslie_alistair at hotmail.com> wrote: > - if (tq->context->tid != GetCurrentThreadId()) > + if (!tq->context || tq->context->tid != GetCurrentThreadId()) How can the context be NULL?