Greetings,
I think the problem is in TileMatrixPatch (PatchLand & PatchStatics) and TileMatrix (ReadStaticBlock & ReadLandBlock). I think Mono does not like way it is using ".get_SafeFileHandle()".
There is a "IF MONO" section, however, I wonder if it might be coded incorrectly...
Code:
fixed (Tile* pTiles = tiles)
{
#if !MONO
_lread( fsData.SafeFileHandle.DangerousGetHandle(), pTiles, 192 );
#else
if (m_Buffer == null || 192 > m_Buffer.Length)
m_Buffer = new byte[192];
fsData.Read(m_Buffer, 0, 192);
fixed (byte* pbBuffer = m_Buffer)
{
Tile* pBuffer = (Tile*)pbBuffer;
Tile* pEnd = pBuffer + 64;
Tile* pCur = pTiles;
while (pBuffer < pEnd)
*pCur++ = *pBuffer++;
}
#endif
}
matrix.SetLandBlock(x, y, tiles);
}
Sorry, my skills in this section of coding is poor.
I think it is this section of code because of the
Moma report...
-Ravon