Hi Guys,
I believe I may have found a bug in the way shared memory (Memory mapped files) is coded in AquaSuite. I've been trying to pull data from AquaSuite using MMF rather then writing out the XML, re parsing the XML, etc, but have not be able to get it working, always FileNotFoundException. Dug through MSDN examples to make sure I wasn't missing something, but still couldn't get anything working. I took a disassembler and pulled out the method used in AquaSuite to write the MMF, and then started my testing again. Using the AS method I can read the MMF until .Dispose() is called, and then back to FileNotFoundException.
if (!flag)
{
memoryMappedFile.Dispose();
}
The above call I believe is what's causing the issue, my test is very very simple at this stage,
try
{
MemoryMappedFile memoryMappedFile = MemoryMappedFile.OpenExisting("aquasuite-export-test");
}
catch (FileNotFoundException)
{
}
Test being my filename in AuqaSuite.
Any ideas?
Thanks!