ContentWriter bugged...

whenever I get the "ContentWriter.BaseStream" pointer, then the ContentWriter adding again and again the header in the file. Why ContentWrite write something in the file, i only get basestream.position?

If i do something like below:


        protected override void Write(ContentWriter cs_writer, TilesetContentData tsdata)
        {
            long a = cs_writer.BaseStream.Position;
            long b = cs_writer.BaseStream.Position;
            long c = cs_writer.BaseStream.Position;
            long d = cs_writer.BaseStream.Position;
            long e = cs_writer.BaseStream.Position;
            long f = cs_writer.BaseStream.Position;
            long g = cs_writer.BaseStream.Position;
        };

My file will have "8" XNB header files.

my workaround if i need 'basestream.position' just make first MemoryStream, and later everything copy by Write(memstream.ToArray());

http://oi65.tinypic.com/2gx1eer.jpg

What version of MonoGame does the bug occur on:

  • MonoGame 3.7

What operating system are you using:

  • Windows

What MonoGame platform are you using:

  • DesktopGL