Doens.be

  • Linkedin flickr twitter delicious Facebook Youtube

Fix unbalanced TTS

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;
}

Tags: , ,

2 Responses to “Fix unbalanced TTS”

  1. April 13th, 2009 at 22:29

    Klaas Deforche says:

    This job is a life saver :-)

  2. January 22nd, 2011 at 00:54

    SebDra says:

    the call of ttsabort will abort all open transactions
    (the ttslevel is only a number, there is only one real open transaction)

    so you don’t need a while-loop, an if-statement is enough

    but what’s about the changes made in that transaction scope?

    i’ll prefer an job like this:

    while (appl.ttsLevel() > 0)
    ttscommit;

Leave a Reply