I\'ve used C# to solve the following requirement.. - create an app the can receive a lot of data fast - you must be able to analyse the received data while more are incoming
I found that closing and recreating the mmf with the same name but new size works to all intents and purposes
using (var mmf = MemoryMappedFile.CreateOrOpen(SenderMapName, 1))
{
mmf.SafeMemoryMappedFileHandle.Close();
}
using (var sender = MemoryMappedFile.CreateNew(SenderMapName, bytes.Length))
and it's really fast.