I have also the "Illegal ?? vector value" error logs with my MAME build.
Set locale on start so sorting in the UI works properly [Vas Crabb].
If you removed in src\osd\windows\winmain.cpp the new line 290 " std::setlocale(LC_ALL, ""); " the error logs disappear.
Or your set