Forum

Shared memory from python


#1

Is there any info on sending data from other apps to vvvv trough shared memory? Is the shared memory node using memory mapped files?

I checked the help patch of Reader/Writer Raw SharedMemory node but it’s not clear for me if vvvv uses memory mapped files then why it uses “names” instead of filenames to identify memory locations?


#2

to my understanding you can use any string to identify a memory mapped file. doesn’t have to be a “filename” in the traditional sense.


#3

I’m confused because to my understanding in python memory mapped files either correspond to an actual file on the disk or being anonymous:

https://docs.python.org/2/library/mmap.html


#4

ok, i only knew of anonymous so far, which the Reader/Writer (Raw SharedMemory) are using. if you need a persistent file you’ll have to write your own little plugin.

seems to be just a few lines of code, see:

and here is how to write a dynamic plugin in vvvv using c#:


#5

Ah, I see. Thank you for the help!