Пример #1
0
 public override void Dispose()
 {
     disposeChilderen();
     if (com != null)
     {
         com.Dispose();
         com = null;
     }
     base.Dispose();
 }
Пример #2
0
        protected virtual void dispose()
        {
            if (video != null)
            {
                video.disableActiveTexture(this);
                if (!video.Caps.ExDevice && !video.deviceReseting)
                {
                    video.DeviceLost  -= deviceLost;
                    video.DeviceReset -= deviceReset;
                }
                video = null;
            }

            if (com != null)
            {
                com.Dispose();
                com = null;
            }
        }