On Wed, May 13, 2009 at 9:49 AM, pete-c <pcwhizzkid at hotmail.com> wrote: > > extern gboolean > peter_test_test_method(PeterTest *self, gchar **res, GError **err) > { > gchar *str = "hello\0"; > res = &str; This should be: gchar *str = "hello"; *res = g_strdup (str);