Shared Memory MBS question

  1. 5 months ago

    Beatrix W

    Dec 29 Pre-Release Testers Europe (Germany)
    Edited 5 months ago

    In regards to the discussion at https://forum.xojo.com/51824-a-macos-console-app-to-display-video : what do the shared memory functions from the MBS plugin use under the hood? Those functions are majorly cool, easy to use and blazingly fast.

    We use MapViewOfFile for Windows and mmap for Mac & Linux.

  2. Tod N

    Dec 29 Daly City, California

    @Christian Schmitz can you speak to this? (am I entering that tag incorrectly?)

    The point of interest for me is that using IPC sockets for interapplication communication is relatively slow. And so surely shared memory must be the most efficient way to accomplish that. ...but I've never used the technique. Also related: Sam Rowlands' exploration in this thread: https://forum.xojo.com/51306-shared-memory-app-sandbox

  3. Christian S

    Dec 29 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    The tag is not correct as Schmitz is not blue and I didn't get notified.

    See the functions here:
    https://www.monkeybreadsoftware.net/topic-filemappingandsharedmemory.shtml

  4. Christian S

    Dec 29 Pre-Release Testers, Xojo Pro, XDC Speakers Answer Germany

    We use MapViewOfFile for Windows and mmap for Mac & Linux.

  5. Douglas H

    Dec 30 Pre-Release Testers, Xojo Pro

    @ChristianSchmitz See the functions here:
    https://www.monkeybreadsoftware.net/topic-filemappingandsharedmemory.shtml

    I see version 18.3 is listed for the addition of some of the shared memory functions ( here ), so they are pretty recent.

    These appear they could be a really efficient way to share data with helper apps. Can anyone confirm if they are compatible with Mojave, or notarized apps, or the app sandbox? It sounds like it uses a different method than Sam's tests did.

  6. Christian S

    Dec 30 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    The functions itself are probably 10 years old!

    GetSharedMemoryValue/SetSharedMemoryValue are simplified functions, we added recently.

    Not sure if they work with the sandbox. You could easily try that.
    We don't use the functions Sam mentions.

or Sign Up to reply!