Fix unbalanced TTS

  • April 13, 2009
  • 2 Comments

During development you may see one of these errors:unbalanced-tts-error

They are pritty anoying because set your Ax session in an unusable state that you can’t close properly. Normally you have to kill the ax32.exe in the Task Manager. Instead, open the AOT and run this job:

1
2
3
4
5
static void resetTTS(Args _args)
{
    while (appl.ttsLevel() > 0)
        ttsAbort;
}