gtk2-perl load error help


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers gtk2-perl load error help
# 1  
Old 03-16-2010
gtk2-perl load error help

I write this code.
It show the first dialog correctly.
but, no matter i modify the code(load module by use or require, or something i think maybe error)

it can't pop-up anymore.

and show this warning.

Thanks.
(I'm sorry for my English.)

Code:
        Tue Mar 16 17:24:36 2010
        Tue Mar 16 17:24:37 2010
        Tue Mar 16 17:24:38 2010
        Tue Mar 16 17:24:39 2010
        Tue Mar 16 17:24:40 2010
Something is very broken, couldn't lazy load Gtk2::Dialog at c:/camelbox/site/li
b/Glib.pm line 211.
Can't locate package Glib::Object::_Unregistered::AtkImplementorIface for @Gtk2:
:Dialog::ISA at c:/camelbox/site/lib/Glib.pm line 211.
Can't locate package Glib::Object::_Unregistered::AtkImplementorIface for @Gtk2:
:Dialog::ISA at c:/camelbox/site/lib/Glib.pm line 211.
        (in cleanup) Something is very broken, couldn't lazy load Gtk2::Dialog a
t c:/camelbox/site/lib/Glib.pm line 211.
        Tue Mar 16 17:24:41 2010
        Tue Mar 16 17:24:42 2010
Terminating on signal SIGINT(2)

Code:
use strict;
use Gtk2 qw/-init/;
my $count = 0;
while (1) {
	my $time = localtime;
	print $time,"\n";
	$count++;
	if ($count == 5) {
		$count = 0;
		if (my $pid = fork) {
		} else {
			my $dialog = Gtk2::Dialog->new(
				"title", undef, 'modal',
				'ok'=>'ok');
			$dialog->show;
			$dialog->run;
			$dialog->destroy;
			exit;
		}
	}
	sleep 1;
}



---------- Post updated at 05:45 PM ---------- Previous update was at 05:43 PM ----------

...
I'm very sorry for the "[code]".
this is my first post.
I will be careful in further.

Last edited by pludi; 03-16-2010 at 07:30 AM.. Reason: cleaned code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Perl: How to load some functions automaticaly, starting Perl inteructively (with -d -e 0)?

I would like to use Perl in 'interactive' mode (kind off), starting it by > perl -d -e 0; But I need to have some function be read on loading. Also, it should not be for anyone who starting Perl or use it any how. I did try to search, but not much result. I have try a file '.perldb':... (1 Reply)
Discussion started by: alex_5161
1 Replies

2. Shell Programming and Scripting

Gtk2-Perl

Hai how to activate (script2)page of a note book in Gtk2-Perl when one script1 is run successfully... Thanks kiran (1 Reply)
Discussion started by: kiran425
1 Replies

3. Shell Programming and Scripting

Gtk2-Perl

Hai how to activate (script2)page of a note book in Gtk2-Perl when one script1 is run successfully... Thanks kiran (0 Replies)
Discussion started by: kiran425
0 Replies

4. Shell Programming and Scripting

Perl::Gtk2 on Linux --- How to Find the Default Font Being Used?

Hello All, Wasn't sure if this was the correct thread to post this under but figured it has to do with Perl and Gtk2 so why not... Anyway.. How can I find out what the Default font being used is inside a Gtk2::Widget. In this case I'm trying to figure out the font being used inside a... (1 Reply)
Discussion started by: mrm5102
1 Replies

5. Shell Programming and Scripting

[Perl + Gtk2] Image disappears after scrolling / minimizing window

Hello everyone I don't know if it's the right place to ask, but I will try. I want to use Gtk2 in my Perl chart-drawing script, I found a sample code that could be very useful for me somewhere, but I noticed there is one problem with that - when I draw something, and then scroll the window or... (0 Replies)
Discussion started by: xqwzts
0 Replies

6. Shell Programming and Scripting

Perl script to load data by calling sqlldr

Hello all, I know this is Unix forum, but i also know that there are some experts here who can help me out with this situation; I am loading a data file into oracle table using Perl script by calling sqlldr script. It does not do anything, and no data is getting loaded. Any help,... (2 Replies)
Discussion started by: msrahman
2 Replies

7. Shell Programming and Scripting

How to load a hash with a file in Perl

Hi to everybody. I have a script in AWK with a revursive function, when I make the recursive call I'm loosing values in the local variables. So I'm trying to do the script in Perl, but I don't know Perl. I want to load several hashes with the data in a pipe separated file. In AWK it looks... (0 Replies)
Discussion started by: kcoder24
0 Replies

8. Programming

perl/Gtk2: issue with initializing Gtk2

hi everybody, currently i'm playing with perl and Gtk2. i've found a fairly old but nice looking example of a client/server application which is written in perl and Gtk2. the server part works perfect but i can't start the client part and keep getting following error message: $ ./client-gui.pl... (1 Reply)
Discussion started by: pseudocoder
1 Replies

9. Shell Programming and Scripting

Perl script to load text file into DB field

Hello, maybe this post is offtopic, sorry for the inconveniencies (maybe should be in the forum with questions about C, C++, Java, SQL...). I found examples about how to populate different fields from a text file (with MySQL, the LOAD DATA INFILE sentece), but not about how to load a complete... (2 Replies)
Discussion started by: aristegui
2 Replies

10. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies
Login or Register to Ask a Question