我用delphi6 ,做数据库的,有时候切换到另外一个form的时候,会直接把d6 关闭掉.
用d7打开,切换到那个form,有提示错误信息.
missing conection or conection string
后来我也找到原因,这个form有两个adoquery, connection 是连datamodule里的一个adoconnection
其中一个adoquery2只是用来做lookup 字段的.
当adoquery1 被我设为active 为ture 时,adoquery2 active 属性也变为true,
接着我再设adoquery1 active 为false,这时adoquery2 active 属性仍为true;
这样,我关闭project ,再打开,就会产生上面的错误~D6有没有什么补丁之类可以解决这个问题呢?不要让它一碰到这种错误就直接关闭掉.
用d7打开,切换到那个form,有提示错误信息.
missing conection or conection string
后来我也找到原因,这个form有两个adoquery, connection 是连datamodule里的一个adoconnection
其中一个adoquery2只是用来做lookup 字段的.
当adoquery1 被我设为active 为ture 时,adoquery2 active 属性也变为true,
接着我再设adoquery1 active 为false,这时adoquery2 active 属性仍为true;
这样,我关闭project ,再打开,就会产生上面的错误~D6有没有什么补丁之类可以解决这个问题呢?不要让它一碰到这种错误就直接关闭掉.
即安装 Delphi6 Update 2 和 RTL Update Pack 3 补丁。
这样,我关闭project ,再打开,就会产生上面的错误~=====================================================================关闭project 前把adoquery2 active 属性仍为False不就行了?