I need my Service to update fields in shared memory for reading and displaying a client application. I found that my current solution is inefficient due to Session Isolation .
I renamed mutexes in the global namespace, which corrects this element, but it does not look as if the DLL was able to share between sessions, despite one solution to isolate session 0:
"Explicitly select either a local or global namespace for any named objects, such as events or associated memory, that the service provides."
I do not know what part of the dll can be classified as a named object, and it will take too much time to continue to reinstall and go through it to check.
I saw code volumes for named pipes and was delayed. I do not want to create a file that touches the disk, as I believe it is required from the memoryMappedFile solution. Can shared DLL sections work? Otherwise, what is the easiest way?
public ref class ServerGUIBridge
{
public:
#pragma data_seg(".sdata")
static int commonIntShouldBeGlobal = 0;
static bool hasBeenInitializedMakeMeGlobal = false;
#pragma data_seg()
#pragma comment(linker, "/section:.sdata,rws")
I am using .NET 2.0, so there is no WCF.
source
share