From CString to char*, ReleaseBuffer() must be used after GetBuffer(). But why? What will happen if I don\'t use ReleaseBuffer() 开发者_StackOverflow中文版after GetBuffer()?
I am trying to POST a potentially large chunk of xml from a C# client to a GAEJ app, and then parse it into a DOM document.
The following code will always throw UnuthorizedAccessException(MemoryStream\'s internal buffer cannot be accessed.)