1
Vote

[Fields not validated issue]

description

Steps needed to reproduce the issue :
 
1 Create a project that uses "Physics Helper"
 
2 Add a PhysicsControllerBehavior to the Canvas Layout
 
3 Add 1 rectangle with PhysicsFluidContainerBehavior
 
4 Set the NodeCound field from the PhysicsFluidContainerBehavior to -1
 
 
Result:
 
When we run the silverlight application we get the folowing error :
 
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Message: Unhandled Error in Silverlight Application Arithmetic operation resulted in an overflow. at FarseerGames.FarseerPhysics.Controllers.WaveController.Initialize()
at Spritehand.FarseerHelper.PhysicsControllerMain.AddFluidContainer(FluidContainerMain fluidContainerMain)
at Spritehand.PhysicsBehaviors.PhysicsFluidContainerBehavior.controller_Initialized(Object source)
at Spritehand.FarseerHelper.PhysicsControllerMain.InitializedHandler.Invoke(Object source)
at Spritehand.FarseerHelper.PhysicsControllerMain.InitializeObjects()
at Spritehand.FarseerHelper.PhysicsControllerMain._timerInitialize_Completed(Object sender, EventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Line: 1
Char: 1
Code: 0
URI: http://localhost:2084/TestPage.html
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

file attachments

comments