ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
Error 22 with SDBM
by Geoff Horsnell other posts by this author
Sep 28 2009 7:57AM messages near this date
view in the new Beta List Site
Re: Re: Microsoft PowerPoint 9.0 Object Library | TK question
I am getting an error message 'sdbm store returned -1, error 22, key "rather
long key" at perlprog.pl line 54' when adding a new record to an existing
library. I had always thought that this error (22) meant that the total
record length (key + value) exceeded the 1k limit for SDBM. However there
are two reasons to doubt this. These are:

 

1.       The total record length is only 824 bytes, 43 of which are the key.

2.       If I start with an empty library, I can happily save this record.

 

I have tried to determine if the record already exists in the library (it
doesn't). I have tried to "merge the existing library with the "new" single
record library that I am able to create, but the merge process also fails
with error 22. 

 

Does this error stand for any other case (if so, what)? How can I get around
/ fix the problem?

 

Any suggestions would be most welcome.

 

Geoff

 

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved