aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
diff options
context:
space:
mode:
authorTedd Hansen2007-11-01 19:27:03 +0000
committerTedd Hansen2007-11-01 19:27:03 +0000
commitdcf41cb68370dc1e1b03fd78edf75b175b17f6ea (patch)
tree3b2079c88657beee8380cdd6acebd33a1891cc15 /OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
parent* Diuerse beavtificatems (diff)
downloadopensim-SC-dcf41cb68370dc1e1b03fd78edf75b175b17f6ea.zip
opensim-SC-dcf41cb68370dc1e1b03fd78edf75b175b17f6ea.tar.gz
opensim-SC-dcf41cb68370dc1e1b03fd78edf75b175b17f6ea.tar.bz2
opensim-SC-dcf41cb68370dc1e1b03fd78edf75b175b17f6ea.tar.xz
ScriptServer fixes: Added more debug logging, mutex lock (to be extra-super-sure) on script load/unload, removed experimental Grid-scriptengine from compile because of dynamic module loader, and added random string to script filename to bypass module loader file lock.
Please delete your copy of bin/ScriptEngine/OpenSim.Grid.ScriptEngine.DotNetEngine.dll.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs23
1 files changed, 15 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
index d7491d9..f215dd5 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
@@ -181,6 +181,12 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
181 // Execute function 181 // Execute function
182 try 182 try
183 { 183 {
184#if DEBUG
185 m_ScriptEngine.Log.Debug("ScriptEngine", "Executing event:\r\n"
186 + "QIS.localID: " + QIS.localID
187 + ", QIS.itemID: " + QIS.itemID
188 + ", QIS.functionName: " + QIS.functionName);
189#endif
184 m_ScriptEngine.m_ScriptManager.ExecuteEvent(QIS.localID, QIS.itemID, 190 m_ScriptEngine.m_ScriptManager.ExecuteEvent(QIS.localID, QIS.itemID,
185 QIS.functionName, QIS.param); 191 QIS.functionName, QIS.param);
186 } 192 }
@@ -188,16 +194,17 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
188 { 194 {
189 // DISPLAY ERROR INWORLD 195 // DISPLAY ERROR INWORLD
190 string text = "Error executing script function \"" + QIS.functionName + "\":\r\n"; 196 string text = "Error executing script function \"" + QIS.functionName + "\":\r\n";
191 if (e.InnerException != null) 197 //if (e.InnerException != null)
192 { 198 //{
193 // Send inner exception 199 // Send inner exception
194 text += e.InnerException.Message.ToString(); 200 text += e.InnerException.Message.ToString();
195 } 201 //}
196 else 202 //else
197 { 203 //{
204 text += "\r\n";
198 // Send normal 205 // Send normal
199 text += e.Message.ToString(); 206 text += e.Message.ToString();
200 } 207 //}
201 try 208 try
202 { 209 {
203 if (text.Length > 1500) 210 if (text.Length > 1500)
@@ -214,7 +221,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
214 //else 221 //else
215 //{ 222 //{
216 // T oconsole 223 // T oconsole
217 Console.WriteLine("Unable to send text in-world:\r\n" + text); 224 m_ScriptEngine.Log.Error("ScriptEngine", "Unable to send text in-world:\r\n" + text);
218 } 225 }
219 } 226 }
220 finally 227 finally
@@ -230,7 +237,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
230 } 237 }
231 catch (Exception e) 238 catch (Exception e)
232 { 239 {
233 Console.WriteLine("Exception in EventQueueThreadLoop: " + e.ToString()); 240 m_ScriptEngine.Log.Error("ScriptEngine", "Exception in EventQueueThreadLoop: " + e.ToString());
234 } 241 }
235 } // while 242 } // while
236 } // try 243 } // try