I wrote a strategy in Ninjatrader that uses MemoryMappedFiles. Ninjatrader recognizes the reference to "System.IO.MemoryMappedFiles." No problem. It recognizes "MemoryMappedFile.CreateNew." It recognizes "MemoryMappedFile.OpenExisting." And it recognizes "CreateViewAccessor." As far as I can tell, it recognizes all of these without problem. It allows me to hit the Compile button - no problem.
However, it does not let me use the MemoryMappedViewAccessor.Write function or the MemoryMappedViewAccessor.WriteArray function. Ninjatrader states, "System.IO.MemoryMappedFiles.MemoryMappedViewAcces sor does not contain a definition for WriteArray and no extension method ... could be found."
How can Ninjatrader have access to almost every part of "System.IO.MemoryMappedFiles" but not some of its crucial functions? Is there any way to fix this, please?
This is the line that causes problems:
Writer.WriteArray<byte>(AstIndex, WriteBytes, 0, WriteBytes.Length);
(Writer is a MemoryMappedViewAccessor)
Comment