elast0ny / shared_memory

A Rust wrapper around native shared memory for Linux and Windows
382 stars 51 forks source link

Metadata does not depend on pointer size. #16

Closed yakov-bakhmatov closed 5 years ago

yakov-bakhmatov commented 6 years ago

This fix allows IPC between 32- and 64-bit applications. Use case: 32-bit application creates shared memory, 64-bit application opens it. cargo run --example custom_create --target=i686-pc-windows-msvc cargo run --example custom_open --target=x86_64-pc-windows-msvc Before this commit the second application terminates with error: Error : Shared memory header contains an invalid mapping size : (map_size: 8192, meta_size: 8589934592, user_size: 17592186044448)