smugindividual
Programmer
Does anyone know why tkwait variable is flakey when monitoring a global variable?
I launch a pick list when the user right clicks on a tag. The code waits for a variable that is set when the user either selects an item from the list or closes the list without selecting anything(variable gets unset).
If a pick list is already on the screen and the user right clicks another tag the code destroys the first and unsets the variable being waited on, except tkwait never sees the variable being unset. If the user keeps right clicking and opening new pick lists the code will keep getting stuckon the tkwait. When the user selects an item or cleses the list without selecting an item, all the waits come back at once.
Problem is slao noted when the pick list is up and user exits the application. Exit routine unsets the variable if it exists, but tkwait doesnt ever see it.
The variable is declared global everywhere it needs to be.
Please help
I launch a pick list when the user right clicks on a tag. The code waits for a variable that is set when the user either selects an item from the list or closes the list without selecting anything(variable gets unset).
If a pick list is already on the screen and the user right clicks another tag the code destroys the first and unsets the variable being waited on, except tkwait never sees the variable being unset. If the user keeps right clicking and opening new pick lists the code will keep getting stuckon the tkwait. When the user selects an item or cleses the list without selecting an item, all the waits come back at once.
Problem is slao noted when the pick list is up and user exits the application. Exit routine unsets the variable if it exists, but tkwait doesnt ever see it.
The variable is declared global everywhere it needs to be.
Please help