protected void ProcessCapture(RetrieveImageDataParams data)
{
var screenshot = new Screenshot(data.RequestId, data.Data, data.Width, data.Height, data.Pitch);
try
{
this.Interface.SendScreenshotResponse(screenshot);
}
catch (RemotingException ex)
{
this.TraceMessage("RemotingException: " + ex.Message);
screenshot.Dispose();
// Ignore remoting exceptions
// .NET Remoting will throw an exception if the host application is unreachable
}
catch (Exception e)
{
this.DebugMessage(e.ToString());
}
finally
{
}
}