Re: error: core dumped
- From: Sven Neumann <sven gimp org>
- To: "J. Ali Harlow" <ali juiblex co uk>
- Cc: ViNiCiUs <vlpg terra com br>, gtk-list <gtk-list gnome org>
- Subject: Re: error: core dumped
- Date: 21 Apr 2004 13:11:39 +0200
Hi,
"J. Ali Harlow" <ali juiblex co uk> writes:
> On 2004.04.21 10:52 Sven Neumann wrote:
>
> > Your usage of GError is wrong. Please read the API documentation on it
> > again. The (probably) correct code is:
> > int
> > main (int argc,
> > char *argv[])
> > {
> > guchar *v;
> > GdkPixbuf *pixbuf;
> > GError *error = NULL;
> > g_type_init ();
> > pixbuf = gdk_pixbuf_new_from_file ("image.jpg", error);
>
> *cough*
>
> pixbuf = gdk_pixbuf_new_from_file ("image.jpg", &error);
Yes, of course. I didn't have enough coffee when I wrote this. Thanks
for correcting my mistake.
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]