Creating objects in b2World::Step()

Are there any negative ramifications of creating new objects during b2World::Step() when collision callbacks are fired? Box2D is throwing assertions in b2World::SolveTOI. It is the first assertion in that function. Here's a snippet:

Code:
            // Put the sweeps onto the same time interval.
            float32 t0 = b1->m_sweep.t0;
            
            if (b1->m_sweep.t0 < b2->m_sweep.t0)
            {
               t0 = b2->m_sweep.t0;
               b1->m_sweep.Advance(t0);
            }
            else if (b2->m_sweep.t0 < b1->m_sweep.t0)
            {
               t0 = b1->m_sweep.t0;
               b2->m_sweep.Advance(t0);
            }

            b2Assert(t0 < 1.0f);


t0 is equal to 1.0f. One of the bodies was just created as the result of a collision. What does it mean if t0 >= 1.0f?

Dan
Hmm, the code should have asserted in b2World::CreateBody.

Code:
b2Assert(IsLocked() == false);


You cannot modify the world inside a call back. You need to cache the event.
Okay, I'm using the SVG version of Box2D, and there is no call to IsLocked() in all of b2World.cpp. So perhaps I have an older version version of the engine. I retrieved it during summer.

Original thread: https://box2d.org/forum/viewtopic.php?t=4070