IonelBurtan
Programmer
Let's say I compile 3 dlls with VC++ from 3 different projects.
Now these DLLs are used by an exe (another project).
I get two messages of these type in the debug window when I start the EXE in debug mode:
LDR: Automatic DLL Relocation in MyExe.exe
LDR: Dll Second.dll base 10000000 relocated due to collision with D:\work3\Apps\First.dll
LDR: Automatic DLL Relocation in MyExe.exe
LDR: Dll Third.dll base 10000000 relocated due to collision with D:\work3\Apps\First.dll
I have read about DLLs and relocation. I know I have to change the default base adress of the dlls with:
#pragma comment(linker,"/BASE:'new base in hexa'":
My problem is:
If I want to know the necesary virtual space between the DLLs what do I have to consider: (the image size + stack size+ heap size). Is there someting else?
Because I want to give contigouous base adresses to avoid memory waste.
Thank you,
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
Now these DLLs are used by an exe (another project).
I get two messages of these type in the debug window when I start the EXE in debug mode:
LDR: Automatic DLL Relocation in MyExe.exe
LDR: Dll Second.dll base 10000000 relocated due to collision with D:\work3\Apps\First.dll
LDR: Automatic DLL Relocation in MyExe.exe
LDR: Dll Third.dll base 10000000 relocated due to collision with D:\work3\Apps\First.dll
I have read about DLLs and relocation. I know I have to change the default base adress of the dlls with:
#pragma comment(linker,"/BASE:'new base in hexa'":
My problem is:
If I want to know the necesary virtual space between the DLLs what do I have to consider: (the image size + stack size+ heap size). Is there someting else?
Because I want to give contigouous base adresses to avoid memory waste.
Thank you,
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...