这是数据remote data module的一个方法.....运行后.弹出错误... invalid pointer opertaion的错误.....求求我了啊.....
function Tserver3536.compname(const name,
  password: WideString): OleVariant;
begin
try
adoquery1.Close ;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('select * from ximintable');
adoquery1.open;
except
showmessage('服数库出错');
end;
result:=false;
while not adoquery1.eof do
begin
 if (jiemi(trim(adoquery1.FieldValues['password']))=password) and (trim(adoquery1.FieldValues['name'])=name) then
 begin
 result:=true;
 showmessage('为真');
 break;
 end;
 adoquery1.Next;
 showmessage(jiemi(trim(adoquery1.FieldValues['password']))) ;
end;
end ;

解决方案 »

  1.   

    看看是哪句出错啊,
    另外,用Select count(*) from xxx where user = 'xxx' and pass= 'xxx'来判断结果是否为0来做这个比较简单
      

  2.   

    一些拷贝函数同样能引起这种错误,如:strpcopy ,strcopy等
      

  3.   

    >>运行后.弹出错误... invalid pointer opertaion的错误.....求求我了啊.....
    從代碼看不出問題, 檢查是不是你沒有初始化DataModule, or 有沒有創建 adoquery1??
      

  4.   

    http://borland.mblogger.cn/aiirii/posts/2530.aspx
      

  5.   

    to arrii
       我太菜了.你有没有中文的资料啊!那个工具我也没找到在那儿下!
      

  6.   

    to aiirii
       我找了你那个工具.可安装过后.设置也设置了一下.好像根据没有.根本没有报错啊!
    各位大侠:
       对于这总类型的问题你们有没有什么好的调式方法.或调式工具!谢谢