gerardorosiles / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

SlimDXControl Does not properly shutdown #825

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Enter a full description of the problem, along with any repro steps or
other useful information. If you have a patch, that's great -- just embed
it here as well. INCLUDE WHAT VERSION YOU ARE USING!!

The proper property is not being set to null for _deviceEx

Latest download, March 2011

Found in file: SlimDXControl.xaml.cs  line 363

private void ReleaseDevice()
{
    if(_device != null)
    {
      if(!_device.Disposed)
    {
        _device.Dispose();
        _device = null;

            OnDeviceDestroyed(EventArgs.Empty);
    }
    }

    if(_deviceEx != null)
    {
      if(!_deviceEx.Disposed)
    {
    _deviceEx.Dispose();
    _device = null;  ****** Should be _deviceEx = null *******
    OnDeviceDestroyed(EventArgs.Empty);
    }
     }

Original issue reported on code.google.com by knoxi...@gmail.com on 23 Aug 2011 at 4:53

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2131.

Original comment by promit....@gmail.com on 23 Aug 2011 at 5:12