1、我先打开一个维护界面,其中TAdoTable的CursorLoacation为clUseServer,CursorType为ctKeyset
2、然后我再打开一个带事务的程序:
if not qry.Connection.InTransaction then
qry.Connection.BeginTrans;
try
qry.Connection.CommitTrans;
except
qry.Connection.RollbackTrans;
end;
3、随便我打开任何一个程序,都抱下列错误;
ITransaction:Commit or ITransaction::Abort was called, and object is in a Zombie state.
4.发现如果第2步没有事务,则第三步不会报错,
5.发现如果第1步TAdoTable的CursorLoacation为clUseClient,则第三步不会报错
希望大家给出解决方法,由于我程序的要求1,2两步必须按现在设置。
2、然后我再打开一个带事务的程序:
if not qry.Connection.InTransaction then
qry.Connection.BeginTrans;
try
qry.Connection.CommitTrans;
except
qry.Connection.RollbackTrans;
end;
3、随便我打开任何一个程序,都抱下列错误;
ITransaction:Commit or ITransaction::Abort was called, and object is in a Zombie state.
4.发现如果第2步没有事务,则第三步不会报错,
5.发现如果第1步TAdoTable的CursorLoacation为clUseClient,则第三步不会报错
希望大家给出解决方法,由于我程序的要求1,2两步必须按现在设置。
解决方案 »
- printer对象font.size如何设置成小数,主要想打出宋体五号字???
- Mastering Delphi 7第12章的ListServ例子程序打不开
- 如何区分clientSocket呢,sockethandle?
- 控件bsTrayIcon!里面有代码,请大家看看!我没分了
- 我在线程中怎么定义不了函数类型或使用不了原有的函数呢?
- 有用过videoforwin视频控件(VFW)的吗?教教我怎么用。可者给出它的网站。3Q
- 高手请进,有关定位弹出菜单项的问题!!
- 如何得到DBGridEh中某一列所对应的字段名
- Delphi有没有悾件数组的概念,象VB那样。若有,怎么用?若您第一个回答正确,奉送50分
- 关于快捷键,不容易,但也不难。
- 如何在程序进行数据库操作的时候保持窗体的刷新,而不是跟程序死掉了一样?
- 用SocketConnection来连接三层的服务器的时候,在启动的时候为什么会出现一个空白的Form,怎么让它不显示?
qry.Connection.BeginTrans;
try
qry.Connection.CommitTrans;
except
qry.Connection.RollbackTrans;
end;if not qry.Connection.InTransaction then是判断事务的,难道你不知道!
1、我先打开一个维护界面,其中TAdoTable的CursorLoacation为clUseServer,CursorType为ctKeyset
2、然后我再打开一个带事务的程序:
if not qry.Connection.InTransaction then
qry.Connection.BeginTrans;
try
qry.Connection.CommitTrans;
except
qry.Connection.RollbackTrans;
end;
3、随便我打开任何一个程序,都报下列错误;
ITransaction:Commit or ITransaction::Abort was called, and object is in a Zombie state.
对于3如果打开的窗体,FormStyle为fsNormal则不报错,如果为fsMDIChild则报错。
http://bbs.2ccc.com/topic.asp?topicid=129581