GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Dec 18, 2014 5:38 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Gthread error running GTK program
PostPosted: Mon Jun 16, 2008 11:57 am 
Offline

Joined: Mon Jun 16, 2008 11:51 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group