The only references to BufferPool that I created are these:
Code: Select all
public BufferPool bufferPool { get; private set; }
bufferPool = new BufferPool();
The rest of the references are all in classes (IntersectionAlgorithm and CharacterControllers) which I copied directly from the demos.
I actually managed to figure out the problem. I'm stopping the server on a thread that isn't the physics thread, so I was setting
Code: Select all
Globals.physics.simulation.Dispose();
Globals.physics.simulation.BufferPool.Clear()
to be called from the main thread, but I was falsifying the condition that keeps the server running right away, so the Dispose and Clear methods weren't actually being run. That was an oversight on my part, sorry for taking up your valuable time