| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 943 人关注过本帖
标题:我为什么总会出错?
只看楼主 加入收藏
阿里巴巴
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-3-19
收藏
 问题点数:0 回复次数:3 
我为什么总会出错?

一、数据库为Sqlserver2000
二、数据表a的结构如下
create table a (
c1 char(6) not null,
c2 text not null
)
三、Delphi程序中在读取a表的内容
var
q1 : tquery;
begin
...
q1.close;
q1.sql.clear;
q1.sql.add('select * from a');
q1.prepare;
q1.open
...
end;
四、程序界面设一tmemo控件对应上述'c2'字段
...
c2.text := q1.fieldvalue('c2');
...
五、q1记录指针的移动,tmemo的text文本也应变动
六、问题:
1、初始运行没有问题,时间一长就会报错:bdeengineer error:invalid blob handle in record buffer.
2.但如果把C2的属性改为char(255)就没有问题了。
请哪位高手帮我解决一下,万分感谢!

搜索更多相关主题的帖子: 数据库 总会 tmemo null text 
2007-03-19 16:03
volte
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:69
帖 子:1167
专家分:1316
注 册:2004-12-19
收藏
得分:0 

你好像用的是BDE连接数据库的吧
将BDE中的Blob Size和Blob Cache调大

主要是BDE缓存不够用。


大家都是朋友,有空就来坐坐!
2007-03-20 08:58
volte
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:69
帖 子:1167
专家分:1316
注 册:2004-12-19
收藏
得分:0 

BLOB SIZE

Determines the fetch buffer size for dead BLOBs. Applications that deal with dead BLOBs using dead table opens or queries or batchmoves can set a maximum limit on the size of BLOBs to fetch. Setting this parameter to 64 means your application can fetch BLOBs of up to 64K.
This parameter does not apply to live table opens.
Default Value: 32
Range : >32 and <1000

BLOBS TO CACHE

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.
This parameter does not apply to live table opens.
Default Value: 64
Range : >64 and < 65536

该注意的地方,我给你标志出来了!不理解BLOB Size和Blob To Cache可以参考我给你的资料!


大家都是朋友,有空就来坐坐!
2007-03-20 09:06
xu2000
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:51
帖 子:3890
专家分:56
注 册:2006-4-8
收藏
得分:0 
BDE有Cache的,才知道,学习了。

我会拿出我全部的钱财,以保你衣食无忧。我会献出我所有的智慧,以助你一帆风顺。我会想到所有的笑语,以令你展眉开颜。我会挤出最长的时间,以使你终生幸福。        [本人原创的结婚宣言]
2007-03-20 12:56
快速回复:我为什么总会出错?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014585 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved