Solved

"Invalid BLOB handle" problem

Posted on 1997-09-03
3
662 Views
Last Modified: 2012-06-21
I am inquiring to find out more about this error and what is causing it. I'm using Delphi 2 with BDE v3.5 under SQL Server and Windows NT. Here is the line of code which generates the exception:

  ablobstream := TBlobStream.Create(ablobfield,bmRead);

The error message generated is:
 "Invalid BLOB handle in record buffer"

I've done a lot of searching on this particular error. Many people seem to get it, but no one has really replied to say what's causing it, or how to fix it.

Any help/information would be appreciated.
0
Comment
Question by:csean
  • 2
3 Comments
 
LVL 1

Expert Comment

by:arh
ID: 1343572
 This seems to be a bug in BDE. I encountered it when i tried
to display memo field contents in a grid connected to a query.
(server is Oracle).
I found that it occurs only if TQuery.RequestLive property is
set to false, and when you scroll several pages down and one page up. Setting RequestLive to true eliminates this error,
but also significally slows scrolling through data set.
  I tried to use direct  BDE API calls to read blob data, but it did not help (so the problem is not in TBlobStream).
  I don't know how this bug affect data sets which are tables (not queries) because I don't use TTable at all.
  Have anyone tried to submit this as a bug report to Borland?
(they say you can do it at www.borland.com)
0
 
LVL 1

Accepted Solution

by:
arh earned 70 total points
ID: 1343573
I have found and (incomplete) answer on Borland web page.
It appears that for non-live cursors the number of accessed BLOBS is limited by BDE cache size, which can be adjusted in BDE 4.0.
Here is Borland answer:

Q: "Invalid BLOb handle" error: What is the cause and how do I fix this error?

A: If the error occurs on a non-live (dead, canned) query or a table with no indexes, then increasing the new BDE4.0 configuration parameter 'BLOBS TO CACHE' will fix the problem. This setting determines how many BLObs will be cached on the client. Applications that deal with fetching dead BLObs using dead table opens or queries can set a limit on the number of BLObs to cache depending on the resource available on the client. Setting a value 100 means the application can work with a maximum of 100 BLOb records cached. Fetching more than 100, then scrolling back 100 records results in an "Invalid BLOb handle in record buffer" error message.
NOTE: This parameter does not apply to live table opens.
0
 

Author Comment

by:csean
ID: 1343574
Thanks arh,

Your proposed answer fixed the problem we were having. Although
we did have to increase the value to 5000 because there was
nearly that many records in the result set.


0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now