finished, but segfault
finished, but segfault

chrishaskell@tes:~/haskelldevelopment/mandelbrot/c$ ./main

(main:10769): Gtk-CRITICAL **: IA__gtk_window_get_size: assertion `GTK_IS_WINDOW (window)' failed

(main:10769): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(main:10769): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(main:10769): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_n_channels: assertion `GDK_IS_PIXBUF (pixbuf)' failed
Segmentation fault

0x00000000004010f4 in setPoint (ctx=0x7fffffffda00, x=0, y=0, r=8, g=8, b=8) at main.c:99
99	    pixels[p] = r;
(gdb) p p
$1 = 0
(gdb) p pixels
$2 = (guchar *) 0x0

ok odd

(gdb) p ctx
$1 = (struct pb_context *) 0x7fffffffda00
(gdb) p ctx->pixels
$2 = (guchar *) 0x0
(gdb) p ctx->rowstride
$3 = -1
(gdb) p ctx->nChannels
$4 = -1

pflanze/mandelbrot,pflanze/mandelbrot,pflanze/mandelbrot