|
From: <br...@us...> - 2009-02-04 13:54:24
|
Revision: 486
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=486&view=rev
Author: brus07
Date: 2009-02-04 13:54:23 +0000 (Wed, 04 Feb 2009)
Log Message:
-----------
Generate and show Message when error on loading plugins.
Modified Paths:
--------------
ACMServer/trunk/ACMServer/Plugins/PluginsFramework/PluginsLoader.cs
Modified: ACMServer/trunk/ACMServer/Plugins/PluginsFramework/PluginsLoader.cs
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/PluginsFramework/PluginsLoader.cs 2009-02-04 11:37:21 UTC (rev 485)
+++ ACMServer/trunk/ACMServer/Plugins/PluginsFramework/PluginsLoader.cs 2009-02-04 13:54:23 UTC (rev 486)
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Reflection;
using System.IO;
+using System.Windows.Forms;
namespace AcmContester.Plugins.PluginsFramework
{
@@ -85,9 +86,10 @@
if (t.GetInterface(typeof(T).FullName) != null || t.IsSubclassOf(typeof(T)))
lst.Add((T)Activator.CreateInstance(t));
}
- catch (TargetInvocationException)
+ catch (TargetInvocationException ex)
{
- //throw ex;
+ MessageBox.Show(ex.ToString(), "Error when load plugin " + filename);
+ throw ex;
}
catch (MissingMethodException)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|