PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Keith LaVey <keith at pop dot uky dot edu>
Subject: CTlib error
Date: Nov 13 1995 6:48PM

We just installed sybperl 2.0 (non-Beta). I have been testing CTlib with
the following code:

      use Sybase::CTlib;
      ct_callback(CS_CLIENTMSG_CB, \&CLIENT);
      ct_callback(CS_SERVERMSG_CB, \&SERVER);
      $X = Sybase::CTlib->ct_connect($user,$pswd,$server);

When I run the script, I get this message:

     ct_cmd_alloc(): user api layer: external error: 
                                 The connection has been marked dead.

If I remove "ct_callback(CS_SERVERMSG_CB, \&SERVER);"
the script runs fine (and displays Server messages to STDERROR). 
What am I doing wrong? 
**********************************************************
Keith LaVey                                       606 257-2313
University of Kentucky           keith@pop.uky.edu
**********************************************************