|
|
sybperl-l Archive
Up Prev Next
From: "Calder, Erick" <ECalder at westernasset dot com>
Subject: RE: bcp_init crashes perl
Date: Dec 27 2004 9:00PM
as an added note, I've tried the test on a couple of other boxes, a production box with:
> Microsoft Windows NT 4.00.1381
> ActiveState perl v5.6.0 built for MSWin32-x86-multi-thread
> $Sybase::DBlib::VERSION ==> 1.34
which works just fine (I don't know what version of Open Client this box has (nor how to find out)), and another production box running:
> Linux: Red Hat Enterprise Linux AS 3.0
> # $Id: DBlib.pm,v 1.49 2004/08/03 14:14:00 mpeppler Exp $
> Open Client 11.9.2
which dies with a different problem (without crashing perl):
"Error: Can't call method "config" on an undefined
value at test1.pl line 4."
I've also run from my w2k box against a 12.5 server with an identical crash:
> Adaptive Server Enterprise/12.5.2/EBF 11790/P/Sun_svr4/OS 5.8/ase1252/1831/32-bi
> t/FBO/Fri Apr 9 10:37:04 2004
I'm hoping someone can help me debug?
-----Original Message-----
From: Calder, Erick [mailto:ECalder@westernasset.com]
Sent: Monday, December 27, 2004 11:13 AM
To: sybperl-l@peppler.org
Subject: bcp_init crashes perl
a non-denominational season's greeting to everyone,
I've downloaded and installed sybperl and am experiencing a perl crash when running one of the sample programs. The message I get is an OK dialogue with the following:
"Perl.lexe has generated errors and will be closed by Windows. You will need to restart the
program. An error log is being created."
here's the program I run:
> use Sybase::BCP;
>
> $bcp = new Sybase::BCP 'developer1', 'xmas', 'udevgdr2';
> $bcp->config(INPUT => 'tst.bcp',
> OUTPUT => 'wa.dbo.ec_tst',
> SEPARATOR => '|'
> );
> $bcp->run;
I've traced the problem inside of the ->run() and have found that it is bcp_init() that crashes perl. I'm running on:
> Microsoft Windows 2000 - 5.00.2195 SP4
> ActiveState Perl v5.8.4 built for MSWin32-x86-multi-thread
> $Id: Sybperl.pm,v 1.31 2001/08/09 00:02:06 mpeppler Exp $
> $Id: DBlib.pm.in,v 1.39 2002/01/11 23:50:29 mpeppler Exp $
with using Open Client 12.5, against:
> Adaptive Server Enterprise/11.9.2.6/1290/P/EBF 10491 ESD1/Sun_svr4/OS 5.5.1/FBO/Mon Jul 15 06:54:22 2002
what can I do to fix this?
1,000 thanks - erick
**********************************************************************
E-mail sent through the Internet is not secure. Western Asset therefore recommends that you do not send any confidential or sensitive information to us via electronic mail, including social security numbers, account numbers, or personal identification numbers. Delivery, and or timely delivery of Internet mail is not guaranteed. Western Asset therefore recommends that you do not send time sensitive or action-oriented messages to us via electronic mail.
**********************************************************************
**********************************************************************
E-mail sent through the Internet is not secure. Western Asset therefore recommends that you do not send any confidential or sensitive information to us via electronic mail, including social security numbers, account numbers, or personal identification numbers. Delivery, and or timely delivery of Internet mail is not guaranteed. Western Asset therefore recommends that you do not send time sensitive or action-oriented messages to us via electronic mail.
**********************************************************************
|