ERROR: Caught an exception in a packet callback: System.FormatException: 
Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, 
NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseSingle(String value, NumberStyles options, 
NumberFormatInfo numfmt)
   at System.Single.Parse(String s, NumberStyles style, NumberFormatInfo 
info)
   at System.Single.Parse(String s)
   at libsecondlife.AssetSystem.AssetWearable.UpdateFromAssetData() in 
H:\checkout\trunk\libsecondlife-cs\AssetSystem\AssetWearable.cs:line 317
   at libsecondlife.AssetSystem.AssetWearable.SetAssetData(Byte[] data) 
in H:\checkout\trunk\libsecondlife-cs\AssetSystem\AssetWearable.cs:line 393
   at 
libsecondlife.AssetSystem.AssetRequestDownload.AddDownloadedData(Int32 
packetNum, Byte[] data) in 
H:\checkout\trunk\libsecondlife-cs\AssetSystem\AssetRequest.cs:line 154
   at 
libsecondlife.AssetSystem.AssetManager.TransferPacketCallbackHandler(Packet 
packet, Simulator simulator) in 
H:\checkout\trunk\libsecondlife-cs\AssetSystem\AssetManager.cs:line 369
   at libsecondlife.Simulator.OnReceivedData(IAsyncResult result) in 
H:\checkout\trunk\libsecondlife-cs\NetworkManager.cs:line 569

Any time you are parsing a number from a string you should sanity check 
with exception handling around just that operation, or use a TryParse() 
function. I have to run now otherwise I'd fix it, maybe I will get to it 
later this evening.
_______________________________________________
Libsecondlife-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/libsecondlife-dev

Reply via email to