Hello,
I am a MCA student from India.For my project i have chosen Digital
image processing. I am new to vala and have some coding experience in
c#.I have started my coding.But i am struck with a problem.
Here is my code
Gdk.Pixbuf p=new Gdk.Pixbuf.from_file("one1.png");
int ht=p.get_height();
int wd=p.get_width();
txtht1.text=ht.to_string();
txtwd.text=wd.to_string();
uchar[] pix=p.get_pixels(); // Error here
When i compile the program i have no errors.
But when i run the program it crashes with the following error.
GLib-ERROR **: /build/buildd/glib2.0-2.18.2/glib/gmem.c:136: failed to
allocate 4294967295 bytes
aborting...
Aborted
I have no idea what this error means. Can somebody help me. Please.
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list