09-18-2010, 05:10 PM
Macros running in separate process cannot access global variables of macros running in QM or other processes. Each process has its own global variables. To initialize them, call your init2 function in each process.
I don't recommend to have many global variables. Especially those that are defined and initialized in init2.
From QM Help, 'Make exe' topic:
I don't recommend to have many global variables. Especially those that are defined and initialized in init2.
From QM Help, 'Make exe' topic:
Quote:If you use global variables that are initialized at QM startup, you should add the initialization code to the exe, or these variables in exe will be empty. For example, call the initialization function at the beginning of the main function (you can use #if EXE to skip it when running in QM). This is not needed for global variables that are initialized by constructor. This is not needed for predefined global variables.