Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing memory between a Windows Wine process and a Linux process doesn't work #108

Open
skligys opened this issue May 2, 2024 · 1 comment

Comments

@skligys
Copy link

skligys commented May 2, 2024

It looks to me that is just because on Windows files representing shmem objects go into

C:\Users\<user>\Temp\shared_memory-rs

and on Linux into

/dev/shm

Once I forced the Windows/Wine process to create a file in Z:\\dev\\shm, which in Wine corresponds to Linux's /dev/shm, sharing seems to work fine.

What do you think of a new wine feature where windows.rs get_tmp_dir() would just return Ok(PathBuf::from("Z:\\dev\\shm")) ?

@skligys
Copy link
Author

skligys commented May 2, 2024

Why would I want to do that? My use case:

  • A Windows device-specific DLL creates frames, stores them in shared memory,
  • A Linux app pulls them out of shared memory and visualizes them for diagnostics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant