Re: Gnome::Client->set_clone_command() segfaults
- From: Chas Owens <cowens intercall com>
- To: Peter Oliver <p d oliver mavit freeserve co uk>
- Cc: gtk-perl-list gnome org
- Subject: Re: Gnome::Client->set_clone_command() segfaults
- Date: 22 Jul 2002 16:01:54 -0400
On Sun, 2002-07-21 at 08:33, Peter Oliver wrote:
Perl segfaults when Gnome::Client->set_clone_command() or
Gnome::Client->set_restart_command() is called with more than two
arguments. For example,
perl -e 'use Gnome; Gnome->init("foo"); my $client = Gnome::Client -> master; $client -> set_clone_command(
$0, @ARGV );' lots of arguments
Now, http://www.gtkperl.org/perl-gnome-ref.pdf just says, somewhat
enigmatically:
$client->set_clone_command (...);
Gnome::Client $client
list ...
Am I doing something wrong, or is this a bug?
--
Peter Oliver
I don't know if this does that right thing or not (haven't figured out
how to use these functions yet), but using an arrayref seems to avoid
the crash:
perl -e 'use Gnome; Gnome->init("foo"); my $client = Gnome::Client ->
master; $client -> set_clone_command( [$0, @ARGV] );' lots of arguments
--
Today is Pungenday the 57th day of Confusion in the YOLD 3168
Keep the Lasagna flying!
Missile Address: 33:48:3.521N 84:23:34.786W
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]