I create a batch file to try and create a static image for all the games supported by controls.ini using johnny5.
I still don;t have Internet access at home so I don't have an exact copy of what I did but basically I have a for loop that calls another batch file that creates a single picture:
for %%f in (D:\mame\ROMS\*) do makeOne.bat %%~nf
and makeOne.bat along the lines of :
johnny5 %1 -position 0,0,800,600 -justprint
<more stuff here that weeds out the "not found" pictures>
This ended up crashing my computer, upon investigation it turns out I had dozens of i_view32 (or whatever it's called) processes.
I don't know if it's an issue with my specific version of irfanview (I tried what I think is the latest, and a much older one that I had around) but when I run the program from the command line, it doesn't seem to leave irfanview processes around.
Maybe it's a timing issue, irfanview "hangs around" after the makeOne batch file returns?
I went around the problem by removing irfanview from the johnny5 directory, and doing the bmp to png convertion by adding something like the following line after the call to johnny5
"C:\Program Files\Irfanview\i_view32" controls.bmp /convert=controls.png /one
Maybe it's the /one (run only one instance) that does the trick, or maybe it's the way I'm doing it with the batch file.
Either way, this may help someone that runs into the same problem