Endless loop in crash with MFC42