I want to make sure I understand the proper use of this object.
Lockflag.Wait and Lockflag.Reset should be used around all the instances of the global variables used in a non GUI thread event as well as the GUI thread event.
In other words, if I use the global var_z in the sub called by thread.start, every time I use var_z in the whole entire project I need to surround it by Lockflag.wait and Lockflag.reset.
This doesn't apply to control objects because they always run in the GUI thread when called by thread.firethreadevent.
Thanks
Lockflag.Wait and Lockflag.Reset should be used around all the instances of the global variables used in a non GUI thread event as well as the GUI thread event.
In other words, if I use the global var_z in the sub called by thread.start, every time I use var_z in the whole entire project I need to surround it by Lockflag.wait and Lockflag.reset.
This doesn't apply to control objects because they always run in the GUI thread when called by thread.firethreadevent.
Thanks