Recently, I translated the code from VB.NET 2003 to C# 2005. I thought it should work the way like its VB counterpart, but no...here is the code to start the process:
ProcessStartInfo startInfo = new ProcessStartInfo("mame.exe");
startInfo.Arguments = listView1.SelectedItems[0].Text;
startInfo.UseShellExecute = true;
Process proc = Process.Start(startInfo);
proc.WaitForExit();
Unlike the VB version, every VERY FIRST time I start mame, the mouse pointer disappears, the whole Windows is freezing(almost). I can't do anything but CltAltDel to stop the MAME process. Then I try again (without close the frontend) and it works! Even if I close the frontend and re-start again, it's working too.
I have no idea what is going on here, any pointer?
ProcessStartInfo startInfo = new ProcessStartInfo("mame.exe");
startInfo.Arguments = listView1.SelectedItems[0].Text;
startInfo.UseShellExecute = true;
Process proc = Process.Start(startInfo);
proc.WaitForExit();
Unlike the VB version, every VERY FIRST time I start mame, the mouse pointer disappears, the whole Windows is freezing(almost). I can't do anything but CltAltDel to stop the MAME process. Then I try again (without close the frontend) and it works! Even if I close the frontend and re-start again, it's working too.
I have no idea what is going on here, any pointer?