Answered
System.ObjectDisposedException: Cannot access a closed Stream when running this statement MemoryStream stream = (MemoryStream)data.GetData(cbExpression, false)
public ResolvedExpression GetClipBoardExpression()
{
try
{
IDataObject data = Clipboard.GetDataObject();
if (!data.GetDataPresent(cbExpression, false))
return null;
using (MemoryStream stream = (MemoryStream)data.GetData(cbExpression, false)) `**>>>>>> Exception comes here , And this happens when copy and pasting text using ctrl+c and ctrl+v and only using RealVNC veiwer.**
{
BinaryReader reader = new BinaryReader(stream, System.Text.Encoding.UTF8);
}
Comments
Hi Harish, as per the other thread you raised - is this a problem you are facing whilst developing a VNC application using the Developer SDK, or a problem which occurs when using VNC software more generally?
Post is closed for comments.