ThinkGeo.com    |     Documentation    |     Premium Support

'Index was outside the bounds of the array' exception inside MapSuite

When I zoom in on my map with one feature layer I now get


Application_Error got called. 

Within this Server.GetLastError().InnerException gives 



{"Index was outside the bounds of the array."} 

[System.IndexOutOfRangeException]: {"Index was outside the bounds of the array."} 

Data: {System.Collections.ListDictionaryInternal} 

HelpLink: null 

InnerException: null 

Message: "Index was outside the bounds of the array." 

Source: "WebEdition" 

StackTrace: " at ThinkGeo.MapSuite.WebEdition.Map.xd8262f22d29c57d5(String[] x2ad333ebea325bde)\r\n at ThinkGeo.MapSuite.WebEdition.Map.x57b61acc3e039aed(String x96adbb16060a076f, NameValueCollection x13e9d0e2d3dc9cb2)\r\n at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)\r\n at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)" 

TargetSite: {Void xd8262f22d29c57d5(System.String[])}


(Version 3.1.16)


It seems to be related to the tooltip hover. If I set a breakpoint insode the tooltip hover client javascript code



 



var beginToolTipsRequestDelegate = function(sender){return function(){

When I step out of the last curly brace I get the  unhandled exception.



When I step into your code of which the



var listeners=this.listeners[type];if(listeners!=null){for(var i=0,len=listeners.length;i<len;i++){if(listeners.obj==obj&&listeners.func==func){listeners.splice(i,1);break;}}}},remove:function(type){if(this.listeners[type]!=null){this.listeners[type]=[];}},triggerEvent:function(type,evt){if(evt==null){evt={};} evt.object=this.object;evt.element=this.element;if(!evt.type){evt.type=type;} var listeners=(this.listeners[type])?this.listeners[type].slice():null;if((listeners!=null)&&(listeners.length>0)){var continueChain;for(var i=0,len=listeners.length;i<len;i++){var callback=listeners;continueChain=callback.func.apply(callback.obj,[evt]);if((continueChain!=undefined)&&(continueChain==false)){break;}} if  (!this.fallThrough){OpenLayers.Event.stop(evt,true);}}


 



 It fails if I step in on that marked in bold


 


Matt



 


beginToolTipsRequest.apply(sender, arguments);


}






 


Matthew,

 


It is a known issue exists in 3.1.16 if you are using callback communicating with the server. Please have a look at the similar post here for the replies.


gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/aft/5353/afv/topic/afpgj/1/Default.aspx#6763c




Thanks,


Ben