Sybase::CTlib and OCS 15 vs OCS 12.5
George Brink <[email protected]> Thu, 27 Mar 2008 14:16:47 -0700 (PDT)
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
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