Full Version : Crash on search in region
xmlspawner >>XMLSpawner - Discussion >>Crash on search in region
<< Prev | Next >>
seirge- 08-06-2006
** XmlSpawner2
** version 3.13
** updated 6/24/05
** RunUO rev 66 with own changes
I try to make a search in a region through [xmlfind
I enter wrong region name (unexisting region) And this is the error.
Here is a crashlog:
Server Crash Report
===================
RunUO Version 2.0, Build 2399.30584
Operating System: Microsoft Windows NT 5.2.3790 Service Pack 1
.NET Framework: 2.0.50727.42
Time: 8/6/2006 9:58:11 PM
Mobiles: 15042
Items: 119744
Clients:
- Count: 1
+ 127.0.0.1: (account = seirge) (mobile = 0x3 'se')
Exception:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Server.Mobiles.XmlFindGump.TestRegion(Object o, String regionname) in r:\Ultima\Server\Avatar\Scripts\Custom\Xml Spawner\XmlUtils\XmlFind.cs:line 265
at Server.Mobiles.XmlFindGump.Search(SearchCriteria criteria, String& status_str) in r:\Ultima\Server\Avatar\Scripts\Custom\Xml Spawner\XmlUtils\XmlFind.cs:line 498
at Server.Mobiles.XmlFindGump.XmlFindThread.XmlFindThreadMain() in r:\Ultima\Server\Avatar\Scripts\Custom\Xml Spawner\XmlUtils\XmlFind.cs:line 57
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
ArteGordon- 08-06-2006
thanks. I'll check that out.
(edit)
fixed.
Updated version of xmlfind.cs is in the beta_20_314.zip
seirge- 08-06-2006
Thanks, ArteGordon.
Your support is wonderful, as usual
ArteGordon- 08-06-2006
It was due to a change in the way region lookup is handled under 2.0. I had to add some additional error trapping.