I am using boost :: interprocess to communicate between two applications. When two applications are launched by the same user, it works great.
When one of the applications is a service, it fails.
I found that the shared media is actually a file created in the "TMP" directory. Therefore, it fails because each application creates its own file in its own "TMP" directory.
Perhaps I am not using this method for my specific purpose.
Does anyone know how to solve my problem?
Thank you very much,
Nick
EDIT : I tried using "managed_mapped_file". My problem is that the win32 implementation calls "CreateFileMapping" without specifying a name for the object. In my special case, I think I need to specify something like "Global \ MyMappedFile" so that both the application and the service can view the associated file.
source share