Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Btrieve Error 22 - Data buffer length

Btrieve Error 22 - Data buffer length

Btrieve Error 22 - Data buffer length

I have written a Visual Basic 5 program that uses a Crystal Reports 8.5 Report Viewer object to view reports off an application that uses a Btrieve database. Crystal Reports (CR) is connected to Btrieve in native mode using MKDE 6.15. It all works fine on my computers running W2K and Win Me. When I try to view a report on my customer's W2K system, I get "Btrieve Error 22 - Data Buffer Length" when the report is about to be previewed on the screen. The CR viewer appears with a blank preview window and the displays the Error 22 message box. What could be causing this error message? I've checked Crystal Decision's and Pervasive's web sites already.


RE: Btrieve Error 22 - Data buffer length

Check the BTI.INI file on the user's PC, and the BTrieve section in their WIN.INI, and look at the data buffer size.  Compare their setup with your own.  It's probable that their system is configured with a smaller buffer than your system.  Expand the buffer, and try again.

RE: Btrieve Error 22 - Data buffer length

Thanks for your response!

I checked my system for a BTI.INI file and I don't have one. Do I need to create one? What section(s) and settings should be in it? (I know very little about Btrieve.)

In my WIN.INI file there is a Btrieve entry that reads: "Options=/m:40 /p:4096 /f:16 /l:20 /t:btrieve.trn". Which of these parameters is the buffer size?

I will check my customer's system to see how it is set up. Are there Registry settings I need to look at?

Thanks in advance for your help.

RE: Btrieve Error 22 - Data buffer length

If you run the btrieve setup program you can change the communication buffers and perhaps the extended buffers.  

The win.ini file was only used the for 5.x windows wbtrcall.dll file.  The bti.ini file is used by 6.x windows drivers.  But if you are running the btrieve 6.15 32-bit you should have a setup program that writes the data to the registry.



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close