MapViewOfFIle in Client and Server returning 2 different address
-
Hi, In server program I do a createfilemapping followed by MapViewOfFile in The Client I do a OpenFileMapping using the name last parameter from CreateFilemapping and then I do a MapViewOfFile and I get 2 different address from MapViewOfFile in the Client and Server shouldn't they be the same since its shared storage Thanks
-
Hi, In server program I do a createfilemapping followed by MapViewOfFile in The Client I do a OpenFileMapping using the name last parameter from CreateFilemapping and then I do a MapViewOfFile and I get 2 different address from MapViewOfFile in the Client and Server shouldn't they be the same since its shared storage Thanks
No. They will be different because the processes are different. The addresses will be different but the data is guaranteed to be the same between the two.
The difficult we do right away... ...the impossible takes slightly longer.
-
No. They will be different because the processes are different. The addresses will be different but the data is guaranteed to be the same between the two.
The difficult we do right away... ...the impossible takes slightly longer.
-
Hi, In server program I do a createfilemapping followed by MapViewOfFile in The Client I do a OpenFileMapping using the name last parameter from CreateFilemapping and then I do a MapViewOfFile and I get 2 different address from MapViewOfFile in the Client and Server shouldn't they be the same since its shared storage Thanks
-
Technically: the physical memory is the same, but the MMU maps it to available free logical address in the destination process. :)