aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
diff options
context:
space:
mode:
authorTedd Hansen2008-02-18 14:21:51 +0000
committerTedd Hansen2008-02-18 14:21:51 +0000
commitc62328950a3e4ad30dbe972db11d05ca7519d6de (patch)
tree4610c7af86f2831f085334aed67f50dab615736b /OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
parentbring back some script engine debugging, hoping this will help track down the... (diff)
downloadopensim-SC-c62328950a3e4ad30dbe972db11d05ca7519d6de.zip
opensim-SC-c62328950a3e4ad30dbe972db11d05ca7519d6de.tar.gz
opensim-SC-c62328950a3e4ad30dbe972db11d05ca7519d6de.tar.bz2
opensim-SC-c62328950a3e4ad30dbe972db11d05ca7519d6de.tar.xz
More exception checks and crash hints
If no scriptengine is specified then don't try to load any.
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs8
1 files changed, 8 insertions, 0 deletions
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
106 106
107 private void AddPlugin(string FileName) 107 private void AddPlugin(string FileName)
108 { 108 {
109 // TODO / NOTE
110 // The assembly named 'OpenSim.Region.Physics.BasicPhysicsPlugin' was loaded from
111 // 'file:///C:/OpenSim/trunk2/bin/Physics/OpenSim.Region.Physics.BasicPhysicsPlugin.dll'
112 // using the LoadFrom context. The use of this context can result in unexpected behavior
113 // for serialization, casting and dependency resolution. In almost all cases, it is recommended
114 // that the LoadFrom context be avoided. This can be done by installing assemblies in the
115 // Global Assembly Cache or in the ApplicationBase directory and using Assembly.
116 // Load when explicitly loading assemblies.
109 Assembly pluginAssembly = Assembly.LoadFrom(FileName); 117 Assembly pluginAssembly = Assembly.LoadFrom(FileName);
110 118
111 foreach (Type pluginType in pluginAssembly.GetTypes()) 119 foreach (Type pluginType in pluginAssembly.GetTypes())