Visual C++ why does seperate thread not regonize globals/defines.
Posted on 2012-04-02
I have an application written in C++ using Visual C++ 2009. In this application I have a seperate 'watcher' thread that listens for messages targeted for this seperate thread. In my application I have a header file that let's call common.h. In this common.h file I have defined some globals and #defines that I want the thread to reconize. But when I run the application and put a break point inside of the seperate thread the globals or defines are not set to a value that I inialized them to. Will a seperate thread, even though in the same application, not reconize globals/defines, from an included file?