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: George Brink <siberianowl at yahoo dot com>
Subject: Sybase::CTlib and OCS 15 vs OCS 12.5
Date: Mar 27 2008 9:16PM

I live (mostly) on windows with OCS 15, it is
installed into c:\sql.
I also have OCS 12.5 in c:\sql_12-5
Installed sybperl 2.18 into ActivePerl 5.8.8

My problem is that sybperl is compiled against 12.5
and I need to modify my environment before using it.
So i wrote:
---------------- 
BEGIN {
	$ENV{SYBASE}     = 'c:\sql_12-5';
	$ENV{SYBASE_OCS} = 'OCS-12_5';
	$ENV{PATH}       = 'c:\sql_12-5\dll';
}
use strict;
use Sybase::CTlib;
my $sybase_status = new Sybase::CTlib $db_login,
$db_pw, $db_server or die "Can not connect to
$db_server";
print "Connected\n";
-----------------

And i receive next set of messages:
----------------
The context allocation routine failed.

The following problem caused the failure:

Invalid context version.
Connected
----------------
After that it works fine, I can select/insert/execute.
But what is this "context allocation routine" which
fails?



George Brink


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs