Solved

"Invalid BLOB handle" problem

Posted on 1997-09-03
3
666 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 Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

837 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