gabriels
2009-10-11 04:38:27
I think I found and solved a problem in the MT code I'm writing but don't understand what's happening.
To isolate the problem, I disabled all translators except the problem translator.
I use qq as a local variable in this translator. In one branch of the code I set qq to a specific value. I also set ga to a specific value. Then I exit and execute outgoing qq ga 7F. This works as intended and the outgoing is BD ga 7F.
However if I branch differently through my code, I don't set the value of qq. I still execute the outgoing. Not so good now! The outgoing is DC ga 7F.
What I don't understand is where the value DC comes from. I don't set qq to 220 (hex equivalent of DC) anywhere in my code. Where could DC be coming from?
I've fixed the problem by always setting qq when I intend to use it in the outgoing, but wonder what's going on "under the hood" of MT.
Gabriel
Gabriel
To isolate the problem, I disabled all translators except the problem translator.
I use qq as a local variable in this translator. In one branch of the code I set qq to a specific value. I also set ga to a specific value. Then I exit and execute outgoing qq ga 7F. This works as intended and the outgoing is BD ga 7F.
However if I branch differently through my code, I don't set the value of qq. I still execute the outgoing. Not so good now! The outgoing is DC ga 7F.
What I don't understand is where the value DC comes from. I don't set qq to 220 (hex equivalent of DC) anywhere in my code. Where could DC be coming from?
I've fixed the problem by always setting qq when I intend to use it in the outgoing, but wonder what's going on "under the hood" of MT.
Gabriel
Gabriel