[fpc-pascal] Sharing memory between applications

Henry Vermaak henry.vermaak at gmail.com
Tue May 20 16:15:54 CEST 2008


2008/5/20 Andreas Berger <Andreas at thebergerclan.org>:
> I need to share memory between applications and wanted to know if FPC has
> this implemented. Today I use the windows "CreateFileMapping" function, but
> this is windows specific.
>
> Another thing: To synchronize the shared memory I use a mutex which can be
> initialized be name on each application. Can this be done with FPC mutexes?

on unix systems you can use mmap and semaphores to accomplish the same
thing.  in fpc there's simpleipc for one-way communication.

henry



More information about the fpc-pascal mailing list