- Home /
Starting serproxy Process from Unity
Hello,
I have a problem with starting "serproxy" (http://www.lspace.nildram.co.uk/freeware.html) in the right way from Unity.
When I start the program manually it reads its config file which is configured for COM3 and I can connect to it without problem. So the config file is correct. But if I let Unity start a Process to open serproxy somehow it can't read its config file anymore.
Here's the code I use for opening the Process:
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = Application.dataPath + "/../serproxy.exe";
startInfo.WorkingDirectory = Application.dataPath;// + "/..";
startInfo.CreateNoWindow = true;`
The serproxy window pops up for a fraction of a second and closes itself again. The error message which I could make out was:
Couldn't find the "comm_ports" entry in config file "serproxy.cfg".
Seeing that it works when I start the program manually I think the problem lies in the way the Process is started from Unity but I can't find out what's wrong.
Please help me, I'm going crazy here... :D
Greetings from Switzerland Kaori