A crash was experienced when the number of active threads was greater than MAX_THREADS (typically 128). The logic has been modified to correct this.
TOCIndex