Kristofer Andersson <(E-Mail Removed)> wrote:
> I have a weird problem. I write a XmlNode to a MemoryStream and the
> data gets truncated at exactly 12k. The XmlNode and its children are
> much larger than that but it always get cut at 12k.
>
> Sample code:
> Dim stream As New System.IO.MemoryStream
> Dim writer As New XmlTextWriter(stream, Nothing)
> myNode.WriteTo(writer)
> writer = Nothing
> stream.Position = 0
> Debug.Write stream.Length
>
> I can't see anything wrong in what I am doing...?
Could you post a short but complete program which demonstrates the
problem?
See
http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too