mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Disable DXCapture for now due to memory leak in WPF app.
This commit is contained in:
parent
a309311022
commit
cd1770bd29
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user