Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Btrieve Error 22 - Data buffer length

Status
Not open for further replies.

CodeHog

IS-IT--Management
Nov 26, 2001
2
US
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.

Thanks
 
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.
 
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. :)
 
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.

Gil Gil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top