View Single Post
Old 09-04-2007, 02:03 PM   #3 (permalink)
RavonTUS
Forum Novice
 
RavonTUS's Avatar
 
Join Date: Aug 2004
Location: in a house.
Age: 39
Posts: 588
Send a message via ICQ to RavonTUS Send a message via AIM to RavonTUS
Default

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
Attached Images
File Type: jpg MomaError.jpg (66.7 KB, 58 views)
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote