Thanks for your help Rajiv.
But as I mentioned in my question I can't have global flag because of variable scope.
Any otherway you can think of? Like getting quitting application call back...?
Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1