Re: problem with g_io_channel_read_to_end ()



> Sure it helps !!it works fine, thanks you.
> but, from where did you find that?
Read the source :)

> and why use a GError ** can' t work ? though I allocated memory to it.
If you want to use GError ** you probably need like this:

GError **error = g_new0(GError *,1);
*error = NULL;
glib_function_call (arg1, error);
if (*error != NULL) {
	/* Error handling */
	g_error_free (*error);
	g_free (error);
}

(I didn't try it so be careful)

Regards,
Ferenc




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