由于我操作不当,把数据库里的内容全部丢失,而备份的记录只是其中的一部分,我把数据恢复后,现在又出现了程序问题。在程序中,按“第一条,下一条,上一条”按钮时执行没有错误,但按“最未条”时,却出现了一个严重错误。。它是一个“information”的提示框,并激活显示CPU指命的这个程序,它指出了错误的地址。具体错误信息:
“project F:\luoyi_app\mdiapp.exe faulted with message :'access violation at 0x4be43541; read of address 0xbdb6e800'. process stopped .use step or run to continue.”我没有处理这种错误的经验,还请各位哥哥帮我一下。我先谢过了。
“最未条”按钮的代码:
database1.starttransaction; //开始事务处理
query1.Last; //最后条
button1.Enabled :=True;
button2.Enabled :=True;
button3.Enabled:=True;
button4.Enabled :=False;
button5.Enabled :=False;
database1.commit; //执行事务
我用此方法再重试了一下,结果是正常。请哥哥们帮一下忙呀。小弟感激不尽。
“project F:\luoyi_app\mdiapp.exe faulted with message :'access violation at 0x4be43541; read of address 0xbdb6e800'. process stopped .use step or run to continue.”我没有处理这种错误的经验,还请各位哥哥帮我一下。我先谢过了。
“最未条”按钮的代码:
database1.starttransaction; //开始事务处理
query1.Last; //最后条
button1.Enabled :=True;
button2.Enabled :=True;
button3.Enabled:=True;
button4.Enabled :=False;
button5.Enabled :=False;
database1.commit; //执行事务
我用此方法再重试了一下,结果是正常。请哥哥们帮一下忙呀。小弟感激不尽。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货