priya.somasundaran
Joined: 16 Jun 2008 Posts: 2
|
Posted: Mon Jun 16, 2008 11:57 am Post subject: Gthread error running GTK program |
|
|
Hi,
I have the following program from gtk site for zooimg of graph
#!/usr/bin/perl
######################################################################
# image viewing application with mouse zoom and pan
######################################################################
use Gtk2;
use Gtk2::ImageViewer;
init Gtk2;
init Gtk2::Gdk::Rgb;
init Gtk2::Gdk::Pixbuf;
init Gtk2::ImageViewer;
if(@ARGV<1){print "Usage: imageview file\n";exit}
$window = Gtk2::Widget->new("GtkWindow",
-type => "-toplevel",
-title => "Image viewer",
-delete_event => sub { print exit Gtk; }
);
$image = Gtk2::Widget->new("GtkImageViewer",
-parent => $window,
);
$file = shift;
$pb = new_from_file Gtk2::Gdk2::Pixbuf($file);
$image->set_image($pb);
$window->show_all();
main Gtk2;
I had glib & gtk2 preinstalled on my redhat EL5 system. I installed the perl interfaces for glib and gtk2 and gtk2imageviwer without errors. when i run the program i get the following error.
GThread-ERROR **: file gthread-posix.c: line 135 (): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, &sched)'
Can any one please help.............I have been cracking my head for 1 week on this, please help...................
priya |
|