OutOfMemoryException for a line of code
Posted: Mon Nov 08, 2010 12:48 am
When I change the goal of a servo in SingleEntityAngularMotor I get OutOfMemoryException after a while.
I have 50 ragdolls and a SingleEntityAngularMotor attached to each limb
in every Update() I change the goal of each SingleEntityAngularMotor, and when I comment out that line that changes the servo's goal I dont get the error
I should also add that I reset the scene every 10 seconds, and this only happens when I use this line:
glMotor[m].Settings.Servo.Goal = newGoal;
I looked at the Demos source, and I think I am doing everything the demo does when resetting the scene
Any ideas why this might be happening? Maybe a bug when changing the goal of the SingleEntityAngularMotor in servo mode?
I have 50 ragdolls and a SingleEntityAngularMotor attached to each limb
in every Update() I change the goal of each SingleEntityAngularMotor, and when I comment out that line that changes the servo's goal I dont get the error
I should also add that I reset the scene every 10 seconds, and this only happens when I use this line:
glMotor[m].Settings.Servo.Goal = newGoal;
I looked at the Demos source, and I think I am doing everything the demo does when resetting the scene
Any ideas why this might be happening? Maybe a bug when changing the goal of the SingleEntityAngularMotor in servo mode?