Hi Joel, Yes, it looks like you are correct. I will fix that for the next muscle release. Regarding the alternative C# library, how does yours differ from the one included in the muscle archive? Thanks for the detailed report, Jeremy On Wednesday 26 March 2008 15:55, Joel Lucsy wrote: > Hello, > > In writing my own C# library, I had some issues in when I wrote a > Message out to a file with the size header written to the output (a > file in this case). An empty message should be 12 bytes and with a > header, 16 bytes. However, only 12 bytes were being written out. So I > browsed the code and found that Flattenable::FlattenToDataIO (in > SetupSystem.cpp, line 616) uses the variable fs when writing to the > DataIO. I believe it should be using bufSize instead which includes > the size with the header. > BTW, if anyone is interested in an alternative C# library, let me know.