Thanks for help, but this is not the case. If I disable "service" commands in my application, then the command line program gets executed without any problem.

This also leads me to another question I have.
Is it possible to execute the program in the background? Because as it is done currently a new window (command line window) will appear and program displays its output there.

Regards,
Tomas

On 5.11.2011 22:57, Vivien Malerba wrote:


On 4 November 2011 23:05, Tomáš Šoltys <tomas.sol...@range-software.com <mailto:tomas.sol...@range-software.com>> wrote:

    Hi all,

    I have created a windows service from which I would like to
    execute a command line program.
    I am trying to use g_spawn_async function.

    For to me unknown reason this is not working. Can someone please
    explain me why and whether it is possible?

    This is the returned error: "Failed to read from child pipe (EOF)"


This reminds me of a similar problem I once had because I had forgotten to distribute the gspawn-win32-helper.exe program as well, so make sure that program is also available along with your binary.

Hope this helps,

Regards,

Vivien

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to