I have 2 dlls where one is run time loaded (Run.dll) and calls the other(other.dll) Also the application calls the other.dll as well. Now the other.dll has a static variable in it that is only used in itself i.e internally to the dll which gets changed by one of it's functions. At the start of the program I call a this function in the other.dll to set the variable but later on when I run time load the run.dll which calls the function in the other.dll the variable is not set. I thought the any variables in the other.dll which is statically linked to the app and to the run.dll will only have one instance of itself in memory especially regarding the variables? How can I solve it to ensure that the variable in other.dll is the same across the process? I forget to mention that I'm using the windows api etc.
P
peterasloan
@peterasloan