I don't have a development environment available right now, so I can't try it out - but I believe that the Global Variable Front Panel will be removed from compiled code and may not function as you expect it to.
I appreciate you are learning how to use Globals Variables, but I will just add that I very rarely use them. There are several much safer tools available for sharing data between threads