Thread_A receives sets of messages in a specific order or set.
Thread_A has an inbound TCL proc, and based on the messages types received creates multiple messages and forwards them to thread_B.
I am using global variables and when i receive for example an EOLT message these variables are reset. One example of a global variable I use is a message line number which the receiving application needs. The problem I have is when the thread is stopped the messages counter will be lost and the receiving application wont be able to handle this.
The program also has a many to one relationship in where on certain message sets , buffers info in global variables and when it hits an EOLT message forwards on one message to the receiving application.
Does anyone have any suggestions how to handle this if the thread is stopped in the middle of message sets e.t.c. or the process panics e.t.c.
The answer is prob check for first message type in a set and if it exists set a global flag and thereafter if that flag is blank when another message type comes in, I know this is a problem and list the rest of the set to a file and take action.
Just looking for some ideas and hope this all makes sense.
Thanks in advance
Ray