From a9f1561380cbf95b9ce2f19f1a15168e982c763d Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 10 Aug 2008 16:39:04 +0000 Subject: [PATCH] Mantis#1910. Thank you kindly, HomerHorwitz for a patch that: In case you run the server with mono --debug OpenSim.exe line numbers are reported as :, so no "at line" is found. That led to an exception, which is caught since r5766. The attached patch fixes this for mono; --- .../Common/ScriptEngineBase/EventQueueThreadClass.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs index 4969df031e..43905a7cb3 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs @@ -319,7 +319,11 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase // way, need to skip the word "line " in the substring try { - line = " at line " + Convert.ToInt32(t.Substring(colon + 6)).ToString(); + // ...if it is there. With mono --debug OpenSim.exe, + // you'll get the error in the format filename:linenumber + if(colon + 6 < t.Length && t.Substring(colon + 1, 5).Equals("line ")) colon += 6; + else ++colon; // else only skip the colon + line = " at line " + Convert.ToInt32(t.Substring(colon)).ToString(); } catch (ArgumentOutOfRangeException e2) {