--- trunk/libxmltv/Core/XMLTVInstance.cs 2013/03/08 03:36:44 44 +++ trunk/libxmltv/Core/XMLTVInstance.cs 2013/03/08 03:41:18 45 @@ -6,10 +6,15 @@ using libxmltv.Interfaces; namespace libxmltv.Core { - internal class XMLTVRuntimeInstance : MarshalByRefObject, IXMLTVRuntimeInstance, IDisposable + internal class XMLTVRuntimeInstance : MarshalByRefObject, IXMLTVRuntimeInstance { public XMLTVRuntimeInstance(string xmlfile) { CreateInstance(xmlfile); } - private void CreateInstance(string xmlfile) { Instance = new XMLTVInstance(xmlfile, this); } + private void CreateInstance(string xmlfile) + { + using (Instance = new XMLTVInstance(xmlfile, this)) + { + } + } internal XMLTVInstance Instance { get; private set; } #region IXMLTV_LOADER members @@ -22,11 +27,11 @@ namespace libxmltv.Core public Dictionary<int, IXMLTVProgram> Programs { get; set; } #endregion - public void Dispose() - { - IsDisposing = true; - //throw new NotImplementedException(); - } + //public void Dispose() + //{ + // IsDisposing = true; + // //throw new NotImplementedException(); + //} public bool IsDisposing { get; private set; } } |