This project is read-only.

Tutorial 8 - AccessViolationException With Newton

Feb 10, 2010 at 2:54 PM
Edited Feb 10, 2010 at 8:10 PM

FIXED,

I had messed up the library versions (I had downloaded too recent versions)


 

Dear all,

Do you have any explanation, solution for the following problem?

I've spent my time yesterday on the configuration of Goblin XNA with ALVAR, following the installation guide.

When launching tutorial 8, I receive an AccessViolationException

in GetNewtonCollision (NewtonPhysics.cs)

 

                        else
                            collision = Newton.NewtonCreateSphere(nWorld,
                                boundingBox.X * scale.X / 2,
                                boundingBox.Y * scale.Y / 2,
                                boundingBox.Z * scale.Z / 2, offsetMatrix);

 

 

                        else
                            collision = Newton.NewtonCreateSphere(nWorld,
                                boundingBox.X * scale.X / 2,
                                boundingBox.Y * scale.Y / 2,
                                boundingBox.Z * scale.Z / 2, offsetMatrix);

 

 

 


 

Many thanks!!
Gregory

 


 

Stack trace

 

> GoblinXNA.dll!GoblinXNA.Physics.NewtonPhysics.GetNewtonCollision(GoblinXNA.Physics.IPhysicsObject physObj = {GoblinXNA.Physics.PhysicsObject}, Microsoft.Xna.Framework.Vector3 scale = {X:1 Y:1 Z:1}) Ligne 1545 C#

  GoblinXNA.dll!GoblinXNA.Physics.NewtonPhysics.AddPhysicsObject(GoblinXNA.Physics.IPhysicsObject physObj = {GoblinXNA.Physics.PhysicsObject}) Ligne 541 + 0x24 octets C#

  GoblinXNA.dll!GoblinXNA.SceneGraph.Scene.RecursivePrepareForRendering(GoblinXNA.SceneGraph.Node node = {GoblinXNA.SceneGraph.GeometryNode}, ref Microsoft.Xna.Framework.Matrix parentWorldTransformation = { {M11:1 M12:0 M13:0 M14:0} {M21:0 M22:1 M23:0 M24:0} {M31:0 M32:0 M33:1 M34:0} {M41:40 M42:26 M43:10 M44:1} }, ref Microsoft.Xna.Framework.Matrix markerTransform = { {M11:0 M12:0 M13:0 M14:0} {M21:0 M22:0 M23:0 M24:0} {M31:0 M32:0 M33:0 M34:0} {M41:0 M42:0 M43:0 M44:0} }, bool calculateAll = true) Ligne 1079 + 0x35 octets C#

  GoblinXNA.dll!GoblinXNA.SceneGraph.Scene.RecursivePrepareForRendering(GoblinXNA.SceneGraph.Node node = {GoblinXNA.SceneGraph.TransformNode}, ref Microsoft.Xna.Framework.Matrix parentWorldTransformation = { {M11:1 M12:0 M13:0 M14:0} {M21:0 M22:1 M23:0 M24:0} {M31:0 M32:0 M33:1 M34:0} {M41:0 M42:0 M43:0 M44:1} }, ref Microsoft.Xna.Framework.Matrix markerTransform = { {M11:0 M12:0 M13:0 M14:0} {M21:0 M22:0 M23:0 M24:0} {M31:0 M32:0 M33:0 M34:0} {M41:0 M42:0 M43:0 M44:0} }, bool calculateAll = false) Ligne 1240 + 0x176 octets C#

  GoblinXNA.dll!GoblinXNA.SceneGraph.Scene.RecursivePrepareForRendering(GoblinXNA.SceneGraph.Node node = {GoblinXNA.SceneGraph.MarkerNode}, ref Microsoft.Xna.Framework.Matrix parentWorldTransformation = { {M11:1 M12:0 M13:0 M14:0} {M21:0 M22:1 M23:0 M24:0} {M31:0 M32:0 M33:1 M34:0} {M41:0 M42:0 M43:0 M44:1} }, ref Microsoft.Xna.Framework.Matrix markerTransform = { {M11:1 M12:0 M13:0 M14:0} {M21:0 M22:1 M23:0 M24:0} {M31:0 M32:0 M33:1 M34:0} {M41:0 M42:0 M43:0 M44:1} }, bool calculateAll = false) Ligne 1240 + 0x176 octets C#

  GoblinXNA.dll!GoblinXNA.SceneGraph.Scene.RecursivePrepareForRendering(GoblinXNA.SceneGraph.Node node = {GoblinXNA.SceneGraph.BranchNode}, ref Microsoft.Xna.Framework.Matrix parentWorldTransformation = { {M11:1 M12:0 M13:0 M14:0} {M21:0 M22:1 M23:0 M24:0} {M31:0 M32:0 M33:1 M34:0} {M41:0 M42:0 M43:0 M44:1} }, ref Microsoft.Xna.Framework.Matrix markerTransform = { {M11:1 M12:0 M13:0 M14:0} {M21:0 M22:1 M23:0 M24:0} {M31:0 M32:0 M33:1 M34:0} {M41:0 M42:0 M43:0 M44:1} }, bool calculateAll = false) Ligne 1240 + 0x176 octets C#

  GoblinXNA.dll!GoblinXNA.SceneGraph.Scene.PrepareSceneForRendering() Ligne 910 C#

  GoblinXNA.dll!GoblinXNA.SceneGraph.Scene.Draw(Microsoft.Xna.Framework.GameTime gameTime = {Microsoft.Xna.Framework.GameTime}) Ligne 2262 C#

  [Code externe]

  Tutorial8 - Optical Marker Tracking.exe!Tutorial8___Optical_Marker_Tracking.Tutorial8.Draw(Microsoft.Xna.Framework.GameTime gameTime = {Microsoft.Xna.Framework.GameTime}) Ligne 375 + 0xc octets C#

  [Code externe]

  Tutorial8 - Optical Marker Tracking.exe!Tutorial8___Optical_Marker_Tracking.Program.Main(string[] args = {string[0]}) Ligne 14 + 0xb octets C#