NewtonDestroyAllBodies Crash

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

NewtonDestroyAllBodies Crash

Postby KingSnail » Wed Jan 06, 2010 7:10 am

> newton.dll!0011abf5()
0xC0000005: Access violation reading location 0x00000010.

When I call NewtonDestroyAllBodies with 2.16 version of newton, dynamicly linked.
Visual Studio 2010, Windows 7 32bit RTM

I dont know why but for some reason it always crash like that, for now my temporary solution is just to destroy the bodies in a loop
Working on an MMORPG powered by Newton Dynamics.
User avatar
KingSnail
 
Posts: 112
Joined: Sat Jan 02, 2010 9:55 pm

Re: NewtonDestroyAllBodies Crash

Postby Julio Jerez » Wed Jan 06, 2010 9:32 am

you must have a but some where, becaus ein all mu demos I use teh funtion to destroy the worl and I does not crashes.

try making a simple scene and test it so that you can find the the bug, but I am very sure the function does not creashes.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonDestroyAllBodies Crash

Postby JernejL » Wed Jan 06, 2010 11:39 am

Your app must also remove all references to the objects - you might still be calling newton to do something with a body that no longer exists.
So it might not actually be crashing in NewtonDestroyAllBodies, please check if NewtonDestroyAllBodies returns.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: NewtonDestroyAllBodies Crash

Postby KingSnail » Wed Jan 06, 2010 5:40 pm

It seems to be crashing inside the function , because theres a green arrow at my next statement which says that this is where we will be after the function returns
and the function is inside the dll, says so on the call stack.

I tried doing checks for if the body exists, then delete it, it still crashes
Working on an MMORPG powered by Newton Dynamics.
User avatar
KingSnail
 
Posts: 112
Joined: Sat Jan 02, 2010 9:55 pm


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 3 guests

cron