I am using boost :: interaction to communicate between two applications when two applications launch by the same user If done, then it works great.
When an application is a service, it fails.
I found that shared media is actually a file that has been created in the "TMP" directory. Therefore it fails because each application is making its own file "own file"
Maybe I'm not using it for my special purpose.
Is anyone an indication of how to solve my problem?
Thank you very much,
Nick
Edit : I tried " managed_mapped_file "My problem is that using Win32 implementation is calling without assigning a name for the" CreateFileMapping "object in my special case, I think that" me
Here's something that works:
- Em> boost :: interprocess :: managed_windows_shared_memory "
- The name of my section is" Global \ Missish Memory "
- I have to handle the case where the application is started Has gone and has no service. The reason for this is that even though my sharing sharing memory has the ability to read / write, but it can not make it.
Maybe someone can serve only (in fact, if the application has special privileges SeCreateGlobalPrivilege to run that user only)
Better method can be found; -)
Nick
Comments
Post a Comment