Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by collerblade » Fri Sep 30, 2016 10:32 am
Hi guys,
i compiled newton and the vehicle files with visual studio 2015 (release, x64). Everything works fine except 1 thing: First i create a vehicle
- Code: Select all
dMatrix m;
NewtonBodyGetMatrix(body,&m.m_front.m_x);
CustomVehicleController* m_controller=manager->CreateVehicle(body,m,PhysicsApplyGravityForce,0);
Than i run it for several newtonupdate().. so it lives for a time. Than i want to destroy this vehicle:
- Code: Select all
manager->DestroyController(m_controller);
A short time after this newton creashes. This not happens if i destroy a regular body, or a joint. Only happens when the vehicle gets destroyed. After the destruction, the vehicle memory gets cleand (???) and there are still pointers to that location? I dont know. My guess is something like that.
Does anyone experience the same?
-
collerblade
-
- Posts: 88
- Joined: Mon Apr 05, 2010 12:09 pm
by Shaderman » Sun Oct 02, 2016 10:48 am
I also have vehicle destruction crashes and thought it might be a problem with my implementation. It's on my to do list to fix it. Unfortunately I don't have any time for my Newton project and can't help at the moment.
-
Shaderman
-
- Posts: 66
- Joined: Tue Mar 08, 2016 2:51 am
by Julio Jerez » Sun Oct 02, 2016 1:48 pm
can you modify one of the demos to reproduce the crash?
I see the code beat you added but I do no know how to try that, please insert then in the demo and post the file so that I can test it.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 6 guests