Page 1 of 1

Global inside Dll

Posted: Tue Feb 13, 2018 12:33 pm
by wayne-c
Will a Global Var$ inside a DLL be different for all the Applications using the DLL simultaneously or shared between the Instances of the DLL? What about a Threaded Var$?

Another question: will a Global Var$ inside the Dll be available for multiple serial procedure calls? What about a Static Var$ inside the ProcedureDll? Will the Static Var$ inside the ProcedureDll be static for all Applications using the DLL?

And another: does a Threaded Var$ in a non-threaded environment fallback to Global Var$?

Thank you!

Re: Global inside Dll

Posted: Tue Feb 13, 2018 5:09 pm
by mk-soft
Each instance hate its own memory.
Thus Global, Threaded, etc. functions like in the main program.

PB-IDs like Windows, Images, Network have their own environment.
So it is not easy to create it from a DLL window and dialogs.
These must ALWAYS be created in the mainscope.

Re: Global inside Dll

Posted: Wed Feb 21, 2018 2:08 pm
by marroh
mk-soft wrote:Each instance hate its own memory.
No hate please!
Just kidding, I know you mean "Each instance has its own memory." ;)