[Vala] Query !!



See if someone can help me with this :

The following example compiles fine , but to run it throws an error :

Rape segment (` core ' generated)

private unowned uint8[] array;

this.pixbuf = new Gdk.Pixbuf.from_file(path);

this.array = this.pixbuf.get_pixels();

Gdk.Pixbuf pix = new Gdk.Pixbuf.from_data(
    this.array, Gdk.Colorspace.RGB, this.pixbuf.has_alpha,
    this.pixbuf.bits_per_sample, this.pixbuf.width,
    this.pixbuf.height, this.pixbuf.rowstride, null);


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