try 
adoconnection.connected:=false;
adoconnection.connectionstring=connstr;
adoconnection.connected:=true;
except 
showmessage('error');
end;当打开连接出错时,为什么捕捉不到,要弹出一个系统错误,才会出现error的提示.
应该如何修改?