From: Matthias B. <ba...@ir...> - 2004-07-07 21:05:13
|
Timothy Stranex wrote: >>When I run the unit tests I get a crash at the end (after the tests >>succeeded). Doesn't this happen on Linux, too? > > It does. While I was writing each unit test, it would sometimes crash > and sometimes not. When it did crash, it always crashed at the end of > the tests so I guess its a deallocation problem. I tracked it down to the Space object. The crash appears in dSpaceDestroy() which is called in the __dealloc__() method. But I have absolutely no idea why it does so... it seems the space is already deallocated when the destructor is called, but why? By the way, in the ODE manual I saw for the first time that spaces have a cleanup flag which is set by default and that this means they destroy the geoms contained in them. This could also lead to geoms being deallocated twice. So I called dSpaceSetCleanup(self.sid, 0) in the constructor of the Space, but this didn't change anything to our crash. I also find it weird that it only happens in the unit test, I've found no other example that crashed....? - Matthias - |