Hi,

I have win32 program, which takes command line parameters and passes them trough socket to another program, running on the same machine. If connection fails, it needs to start the another program.

I don't want console to popup so I added "-L/SUBSYSTEM:WINDOWS". This works fine, except when it would need to start the another program, which fails silently. And I guess because console is hidden, no error messages or exceptions appear if I try to run it from console. Removing the linker directive makes spawnProcess work. To make this mysterious, when I run it from eclipse DDT it works all the time...

The starting happens in catch:
} catch (SocketException ex) {
   spawnProcess([`c:\Progra~1\XXX\YYY\program.exe`, recipe]);
}

I am all out of ideas, so all help is appreciated.

Reply via email to