Antivirus software sometimes flags emulator files as suspicious and prevents them from writing to the disk.
If you are using a previously patched or "trimmed" ROM, it may cause an exception. Try using a completely unmodified, original ROM file.
: Ensure you are using the latest stable release. If you are using a non-English ROM, some users have found success reverting to of the randomizer. Check ROM Region