Because my app has gotten too large to compile as a single EXE,
I'm breaking it up into multiple EXEs and DLLs. I would like
to put a large "library" of string arrays (variables, but
effectively used as constants by the app, since they never
change) into a large DLL, callable by 2 or more of the EXEs.
What I'm wondering is, if MAIN.EXE and SECOND.EXE both use the
large DLL I want to create, and DLL is loaded into memory when
MAIN.EXE starts, will Windows load a second copy of it it memory
each time I SHELL to SECOND.EXE, or will SECOND.EXE simply call
the DLL that is already in memory? Since the DLL would be quite
large (a few hundred Kb of string arrays), this won't be a
satisfactory solution if SECOND.EXE has to load the DLL from
disk each time it is SHELLed to from MAIN.EXE, by the user, with
a delay of a couple or three seconds.
I'm hoping Windows is smart enough not to have to load multiple
copies of a DLL into memory, but am I being too optimistic here?
I haven't been able to find any info on this in the archives, as
the answer is probably too obvious to old hands....
------------------
I'm breaking it up into multiple EXEs and DLLs. I would like
to put a large "library" of string arrays (variables, but
effectively used as constants by the app, since they never
change) into a large DLL, callable by 2 or more of the EXEs.
What I'm wondering is, if MAIN.EXE and SECOND.EXE both use the
large DLL I want to create, and DLL is loaded into memory when
MAIN.EXE starts, will Windows load a second copy of it it memory
each time I SHELL to SECOND.EXE, or will SECOND.EXE simply call
the DLL that is already in memory? Since the DLL would be quite
large (a few hundred Kb of string arrays), this won't be a
satisfactory solution if SECOND.EXE has to load the DLL from
disk each time it is SHELLed to from MAIN.EXE, by the user, with
a delay of a couple or three seconds.
I'm hoping Windows is smart enough not to have to load multiple
copies of a DLL into memory, but am I being too optimistic here?
I haven't been able to find any info on this in the archives, as
the answer is probably too obvious to old hands....
------------------
Comment