--- trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs 2012/05/09 22:48:59 97 +++ trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs 2012/05/09 23:10:12 98 @@ -5,6 +5,7 @@ using System.Text; using RomCheater.PluginFramework.Interfaces; using System.Diagnostics; using libWin32.Win32.Threading; +using RomCheater.Logging; namespace RomCheater.PluginFramework.Core { @@ -18,7 +19,9 @@ namespace RomCheater.PluginFramework.Cor public override void Reload() { + logger.Debug.WriteLine(" Loading config for {0}...", this.ToString()); init(); + logger.Debug.WriteLine(" Loaded config for {0}.", this.ToString()); } private void init() { @@ -32,16 +35,20 @@ namespace RomCheater.PluginFramework.Cor string proc_user = ThreadControl.GetProcessOwner(proc.Handle, out isSystem).ToLower(); if (isSystem) { + logger.Debug.WriteLine(" not adding process {0} because it is a system process", proc_name); continue; } ProcContainer container = null; try - { + { container = new ProcContainer(proc); + logger.Debug.WriteLine(" adding process {0} ", proc_name); } - catch (Exception) + catch (Exception ex) { - throw; + //throw; + logger.Debug.WriteLine(" not adding process {0} because it thew an exception [{1}]", proc_name, ex.Message); + continue; } proc_list.Add(container); } |