sdac components keep displaying exceptions

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Toto
Posts: 4
Joined: Tue 23 Feb 2010 15:03

sdac components keep displaying exceptions

Post by Toto » Tue 25 May 2010 13:34

Hi,

Why display sdac components exception messages in a try.. except block?
I experienced that with msLoader and msQuery as well. Here comes a bit of code:

try
if q.Connection.Connected and (schema '') then begin
q.SQL.Add('select '+schema+'.ab_width_bucket(1, 1, 1, 1)');
q.Execute;
Result := True;
end;
except
Result := False;
end;

That is a check if a user defined function is exist or not. I don't need the error message displayed but it is displayed. Why? Did I something wrong? That works fine on Oracle. Thanks for help in advance!

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 26 May 2010 08:15

It can appear only when you run the application inside the IDE in the debug mode.
Please check that you are running the application not from the IDE.

Toto
Posts: 4
Joined: Tue 23 Feb 2010 15:03

Post by Toto » Wed 26 May 2010 10:25

I checked that with the same result. Those exceptions are still displayed.

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 26 May 2010 12:15

Please, try to compose a small sample to demonstrate the problem and send it to dmitryg*devart*com.

Post Reply