The MASM Forum

General => The Campus => Topic started by: mabdelouahab on November 09, 2016, 09:58:18 AM

Title: shared buffer address
Post by: mabdelouahab on November 09, 2016, 09:58:18 AM
In this  (http://masm32.com/board/index.php?topic=5783.msg61653#msg61653) topic, I noticed that the shared memory address is different in each process though he himself (shared buffer address)
I put at the beginning of the program:
Quoteyou are PROC 1 [E00000]
E00000 is lpBaseAddr (shared buffer address); But with the different process shows a different address to the same place (shared buffer ).
Quote
you are PROC 1 [E00000]
you are PROC 2 [1300000]
you are PROC 3 [AC0000]
you are PROC 3 [CA0000]
I use

    mov edi,lpBaseAddr
    mov ecx,dword ptr [edi]

How can I explain that in every process I use a different (Value)  address to get to the same dword place.