• 11.08.2025, 07:34
  • Register
  • Login
  • You are not logged in.

 

RiC0MD

Newbie

AquaSuite 2014 Shared Memory Bug?

Tuesday, March 25th 2014, 10:03pm

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!

sebastian

Administrator

Wednesday, March 26th 2014, 7:53am

Hello,
i can confirm this issue.
In the next version we change the behavior and give some code samples to read out the file.

Sebastian