Re: g_spawn_async_with_pipes and WIN32



Alan M. Evans writes:
I created the minimal sample program, and it works! The working example
is virtually copy/pasted out of the non-working code.

That's so typical;) Could your problem then simply be caused by some
dynamic memory management bug or similar in the full program that
corrupts some data structures, maybe even GLib's own?

        g_spawn_async_with_pipes();
        WaitForSingleObject();

BTW, why do you use g_spawn_async_with_pipes() if you then immediately
wait for the process to finish? Wouldn't g_spawn_sync() be simpler?

--tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]