views:

59

answers:

0

Hi all,

I want to create a global MemoryMappedFile in C# 4.0 using following call:

string MemoryMappedFileName = "Global\\20E9C857-C944-4C35-B937-A5941034D073";
ioBuffer = MemoryMappedFile.CreateNew(MemoryMappedFileName, totalIoBufferSize);

This always throws following exception "System.UnauthorizedAccessException: Access to the path is denied." If I remove the "Global\" identifier from the memorymapped filename it works but I need a memory mapped file existing accross terminal sessions.

ps: It works if I run as administrator...

thanks, Christoph