AutoActive called back on destroyed bodies?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

AutoActive called back on destroyed bodies?

Postby Aphex » Sat Jul 19, 2008 10:18 am

Hi all,

I've just re-organised my body management stuff and now I'm getting the autoActive callback called just after I destroy a body - is this to be expected?

cheers,
Aph
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK

Re: AutoActive called back on destroyed bodies?

Postby Julio Jerez » Sat Jul 19, 2008 11:11 pm

is this with the new SDK?
Julio Jerez
Moderator
Moderator
 
Posts: 11155
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: AutoActive called back on destroyed bodies?

Postby Aphex » Sun Jul 20, 2008 10:42 am

No, the latest 'old' version.
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK

Re: AutoActive called back on destroyed bodies?

Postby JernejL » Sun Jul 20, 2008 10:59 am

Perhaps the same body ID is being reused by another body created after old one was deleted?
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1531
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: AutoActive called back on destroyed bodies?

Postby Aphex » Sun Jul 20, 2008 5:21 pm

The call stack goes off into Newton when I destroy the body, then comes back out 4 calls down with an autoActive callback with the body pointer that was just destroyed... :shock:

[ed] Hmm I've changed a load more code and don't get it any more, but I'm curious as to if this behaviour can/should be expected..?
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK

Re: AutoActive called back on destroyed bodies?

Postby Julio Jerez » Sun Jul 20, 2008 6:56 pm

It is any reason why you shose to stay wit 1.53
are you the person who requested the double presistion?
Julio Jerez
Moderator
Moderator
 
Posts: 11155
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: AutoActive called back on destroyed bodies?

Postby Aphex » Mon Jul 21, 2008 3:03 pm

Yes - I'm the one that wanted doubles :)
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK

Re: AutoActive called back on destroyed bodies?

Postby Julio Jerez » Tue Jul 22, 2008 12:22 pm

OK I have the double precision dll ready now, send me it is included in the download link.
send me a PM if you do not the link.
Julio Jerez
Moderator
Moderator
 
Posts: 11155
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: AutoActive called back on destroyed bodies?

Postby Aphex » Tue Jul 22, 2008 1:12 pm

Excellenté - cheers! Getting now :)
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK

Re: AutoActive called back on destroyed bodies?

Postby Aphex » Wed Jul 23, 2008 6:34 am

Hmm I see the double dll is vs9 - will I need vs2008 to use this? (I'm using 2003 - 05 & 08 game me nothing but trouble :()
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK

Re: AutoActive called back on destroyed bodies?

Postby Julio Jerez » Wed Jul 23, 2008 9:13 am

yes,

I made teh mistake to mak eteh project in 2009, an dit codul no tbe converted to 2003.
I will recreted in 2003, thsi saturdate.
Any reason why you are not using VS2009?
Julio Jerez
Moderator
Moderator
 
Posts: 11155
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: AutoActive called back on destroyed bodies?

Postby Aphex » Wed Jul 23, 2008 10:06 am

Ah. Yes: VS9 exhibits a linker bug with my project that MS have promised to fix... sometime in the future :(
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK

Re: AutoActive called back on destroyed bodies?

Postby Julio Jerez » Thu Jul 24, 2008 9:49 am

Ok the vs2003 double is in, try again
Julio Jerez
Moderator
Moderator
 
Posts: 11155
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: AutoActive called back on destroyed bodies?

Postby Aphex » Wed Aug 06, 2008 4:29 pm

Nice one - will try it now - sorry been away on hols for a few weeks!
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron