From c62328950a3e4ad30dbe972db11d05ca7519d6de Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Mon, 18 Feb 2008 14:21:51 +0000 Subject: More exception checks and crash hints If no scriptengine is specified then don't try to load any. --- OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs') diff --git a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs index 76ea503..ac05576 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs @@ -106,6 +106,14 @@ namespace OpenSim.Region.Physics.Manager private void AddPlugin(string FileName) { + // TODO / NOTE + // The assembly named 'OpenSim.Region.Physics.BasicPhysicsPlugin' was loaded from + // 'file:///C:/OpenSim/trunk2/bin/Physics/OpenSim.Region.Physics.BasicPhysicsPlugin.dll' + // using the LoadFrom context. The use of this context can result in unexpected behavior + // for serialization, casting and dependency resolution. In almost all cases, it is recommended + // that the LoadFrom context be avoided. This can be done by installing assemblies in the + // Global Assembly Cache or in the ApplicationBase directory and using Assembly. + // Load when explicitly loading assemblies. Assembly pluginAssembly = Assembly.LoadFrom(FileName); foreach (Type pluginType in pluginAssembly.GetTypes()) -- cgit v1.1