GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gthread error running GTK program

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
priya.somasundaran



Joined: 16 Jun 2008
Posts: 2

PostPosted: Mon Jun 16, 2008 11:57 am    Post subject: Gthread error running GTK program Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP