From the command line. You know, that "C:\users\YOU>" thing? You said in the OP that it was doing the same thing through MAME as well as Mala, I took that to mean you had tried running MAME from the command line as well as through the front end.
If that is not the case, then step one is to try running MAME from the command line.