Re: g_spawn_async_with_pipes problems



On Fri, Feb 14, 2003 at 07:12:09PM -0800, Neil Hodge wrote:
All:

I am just setting up some test code to see if I can get
g_spawn_async_with_pipes working, but I can't seem to make it work. 
Here is the code:

      gchar **argv;
      GError *err = NULL;

      *(argv+0) = g_strdup_printf("/usr/bin/xmms");

argv points to nothing (it is just junk); thus, "bad address," 
EFAULT.

Read up on pointers and malloc()

Havoc



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