Just curious Bill, "reset" used in the first post, what do you mean by that, are you taking the mclr line low or doing a full power off scenario?
I ask because a power off that only browns out the LCD may be the entire problem. There will be times you do not want to use flags = 0 due to latency problems.