R
Rahul
Hi Everyone,
I have a dll whose methods work in a global variable. The global
variable is declared in a particular source file and the function is
declared in a header file used by the application (exe). Now the exe
loads this dll and invokes the function. The function works on the
global variable and perform necessary operation.
Now the question is, where exactly is the global variable loaded in
the exe? If it is in the data segment, is there a limit to the data
segment or can the data segment grow in size? can i keep on adding
global variables to the dll and expect the exe to work fine?
When is the size to be allocated in the data segment computed (run
time or compile time)? For stack, i know that the size is computed
during the compilation.
Thanks in advance ! ! !
I have a dll whose methods work in a global variable. The global
variable is declared in a particular source file and the function is
declared in a header file used by the application (exe). Now the exe
loads this dll and invokes the function. The function works on the
global variable and perform necessary operation.
Now the question is, where exactly is the global variable loaded in
the exe? If it is in the data segment, is there a limit to the data
segment or can the data segment grow in size? can i keep on adding
global variables to the dll and expect the exe to work fine?
When is the size to be allocated in the data segment computed (run
time or compile time)? For stack, i know that the size is computed
during the compilation.
Thanks in advance ! ! !