Example #1
0
 public void Dispose()
 {
     try
     {
         // If there are any errors, that means the items are disposed or not yet newed up. We should be fine moving on.
         Texture.Dispose();
         OutputDuplication.Dispose();
         _output1.ReleaseOwnership();
         _output.ReleaseOwnership();
         _output1.Dispose();
         _output.Dispose();
         Device.Dispose();
         _adapter.Dispose();
         _factory.Dispose();
     }
     catch
     {
     }
 }