if (oldCount == 0 && newCount > 0)
{
m_flags |= e_touchFlag;
listener->BeginContact(this); // <<--- access violation
}
{
m_flags |= e_touchFlag;
listener->BeginContact(this); // <<--- access violation
}
Original thread: https://box2d.org/forum/viewtopic.php?t=3230