I am trying to debug the Zeta perl module which fails when calling a c sub
by the name of Zeta::_present
the call to the Zeta:_present is as follows:
eval{
($status, $reason, $howmany, @records) = Zeta::_present ($unique,
$resultset, $items, $start, $esn, $recstx, $Zeta::TIMEOUT);};
if($@){
return 0;
}
the call to Zeta::_present does not return at all.
In addition:
where can I find the actuall code of the c subs that are used by the perl
module?
Dana
-----Original Message-----
From: Marcus Holland-Moritz [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 5:26 PM
To: Dana Sharvit - M
Cc: [EMAIL PROTECTED]
Subject: Re: catching Perl_croak
Hi Dana,
> I have a perl program that is call a c sub , the c subs issus a
Perl_croak.
> How can I catch that in the perl program, I tried with eval but it does
not
> work.
You can definitely catch a call to Perl_croak() with eval.
What exactly do you mean by "it does not work"?
What happens? What do you think should happen?
Can we see your code and what you expect it to do?
-- Marcus