I ran into a bit of a problem with my setup (not with Newton). Referring to Archimedes Buoyancy sample in demoSandBox, I am getting a crash on exit, when
- Code: Select all
void DestroyTrigger (dCustomTriggerController* const trigger)
is called. This is most likely due to a different setup I have, namely for my equivalent of DemoEntityManager class. The problem is, early into my project, when I started experimenting with Newton, I was looking at the demoSandBox, and I wanted to simplify things for starters (I didn't need any rendering or user interface stuff). So, I implemented a simple entity manager class that holds all my entities in a std::vector<Entity*> container. DemoEntityManager uses a dList, similar to STL. Things worked so far, but I set myself a task to, when time permits, bring this up to date and more in line with the setup used in demoEntityManager.
Well, I think this has now bitten me in the butt... Upon exiting out of my sim, I get a crash in a cleanup code for dCustomTriggerController, namely, in
- Code: Select all
dCustomTriggerManager::DestroyTrigger(trigger);
Do you have any suggestions on how to deal with this? I can provide a call stack if it helps...