From 5099be8072301bab40b2f33a89833cc64c48551a Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 1 Feb 2008 13:10:40 +0000 Subject: [PATCH] Temporary try catch around calculateSpaceForGeom() , to see if it gets past mantis issue #435 (for now) --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index d25b8c072d..7a38d0eedb 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -873,10 +873,17 @@ namespace OpenSim.Region.Physics.OdePlugin /// a pointer to the space. This could be a new space or reused space. public IntPtr calculateSpaceForGeom(PhysicsVector pos) { - int[] xyspace = calculateSpaceArrayItemFromPos(pos); - //MainLog.Instance.Verbose("Physics", "Attempting to use arrayItem: " + xyspace[0].ToString() + "," + xyspace[1].ToString()); - IntPtr locationbasedspace = staticPrimspace[xyspace[0], xyspace[1]]; + IntPtr locationbasedspace =IntPtr.Zero; + try + { + int[] xyspace = calculateSpaceArrayItemFromPos(pos); + //MainLog.Instance.Verbose("Physics", "Attempting to use arrayItem: " + xyspace[0].ToString() + "," + xyspace[1].ToString()); + locationbasedspace = staticPrimspace[xyspace[0], xyspace[1]]; + } + catch (Exception) + { + } //locationbasedspace = space; return locationbasedspace; }