ado+access出现异常!!请大侠帮助!另找delphi6,update2下载地址(我认为可能是我没打补订造成的) 今天它又出来了,这回看清楚了

  • 主题发起人 哈利波特
  • 开始时间

哈利波特

Unregistered / Unconfirmed
GUEST, unregistred user!
ado+access出现异常!!请大侠帮助!另找delphi6,update2下载地址(我认为可能是我没打补订造成的) 今天它又出来了,这回看清楚了,原来是EAccessViolation异常,看了帮助,没怎么看懂,请大侠帮忙啊! (100分)<br />我用的是delphi6+win2000pro+ado+access2000
异常出现没有规律(通常在不重启的情况下,运行几十次软件后才出来)
提示好像与访问Access有关,忘记了,现在要找它,它还不出来了
我的delphi6没装update1,2,所以我认为可能有关,但不敢确定,请大侠帮忙分析原因,
我是不是得装上update2啊?(给出真正能用的网址,我不想重装delphi)
另外一个data module中我放了30个adodataset,不会有问题吧?我想不会的

今天它又出来了,详细见下面的错误提示:
Project caobiao.exe raised exception class EAccessViolation with message
'Access violation at address 0044D004 in module 'caobiao.exe'. Read of address
00098053'. Process stopped. Use Step or Run to continue.
就是这些了,不知道问题出在什么地方
 
www.playicq.com
里面有补丁

可以试着打个Ado的补丁看看
microsoft里的
 
问题总是出在combobox身上
我通常在form的show事件中从数据库中读数
如: adodataset.commandtext:='Select 姓名 from 数据库';
adodataset.open;
while not adodataset.eof do
begin
combobox.items.add(adodataset.fields[0].asstring);
adodataset.next;
end;
adodataset.close;
然后在combobox中选择数据,再根据选择的数据再从数据库中找相应的记录
即在combobox的onchange事件中
if combobox1.itemindex&lt;&gt;-1 then
begin
if adodataset.active then adodataset.close;
name:=trim(combobox1.text);
adodataset.commandtext:='Select nl from 数据库 where name=:n';
adodataset.parameters.parambyname('n').value:=name;
adodataset.open;
end;
这样做应该没问题吧?
 
Select 姓名 from 数据[red]库[/red]?
 
ftp://ftpd.borland.com/download/delphi/devsupport/delphi6/D6_upd1_ent.exe
ftp://ftpd.borland.com/download/delphi/devsupport/delphi6/D6_upd2_ent.exe
 
adodataset.commandtext:='Select 姓名 from 数据库';
adodataset.open;
combobox.items.clear;///
while not adodataset.eof do
begin
combobox.items.add(Trim(adodataset.fields[0].asstring));////
adodataset.next;
end;
adodataset.close;
 
你的问题我没仔细看,但是不要在win2000下开发,界面会变形,要在98 下开发,
 
不是补订的事
 
顶部