Disable DXCapture for now due to memory leak in WPF app.

This commit is contained in:
Jared Goodwin 2019-12-27 17:59:03 -08:00
parent a309311022
commit cd1770bd29

View File

@ -31,25 +31,27 @@ namespace Remotely.ScreenCast.Win.Services
private static ICapturer GetCapturer()
{
ICapturer capturer;
try
{
if (Conductor.Current.Viewers.Count == 0)
{
capturer = new DXCapture();
}
else
{
capturer = new BitBltCapture();
}
}
catch (Exception ex)
{
Logger.Write(ex);
capturer = new BitBltCapture();
}
return new BitBltCapture();
// TODO: DXCapture is leaking in the WPF app.
//ICapturer capturer;
//try
//{
// if (Conductor.Current.Viewers.Count == 0)
// {
// capturer = new DXCapture();
// }
// else
// {
// capturer = new BitBltCapture();
// }
//}
//catch (Exception ex)
//{
// Logger.Write(ex);
// capturer = new BitBltCapture();
//}
return capturer;
//return capturer;
}
}
}