Rare problem with global variable value

Sergio Szychowski <[email protected]> Fri, 10 Jul 2020 14:21:05 -0300
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAHrRhugY3ggXU0yFfCDi2GtZd0k_t6R4Uns9vg5eDVexNr2gmw@mail.gmail.com>
Hello,

I have a global variable type int in a module xxx.4gl, which takes value
inside this module, but when I invoke a function
Inside the yyy.4gl module, which uses the value of this variable, it
appears with a value of 0.
the variable is defined in both modules as int and global.

Something I observed is that in the xxx.c and yyy.c a block 'c' appears at
the beginning where it initializes the
variables that are global. This should happen only once, and immediately
after the entry point to 4ae. Or maybe it shouldn't happen automatically.

Thanks in advance

Best regards

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss