Page 1 of 1

sdac components keep displaying exceptions

Posted: Tue 25 May 2010 13:34
by Toto
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!

Posted: Wed 26 May 2010 08:15
by Dimon
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.

Posted: Wed 26 May 2010 10:25
by Toto
I checked that with the same result. Those exceptions are still displayed.

Posted: Wed 26 May 2010 12:15
by Dimon
Please, try to compose a small sample to demonstrate the problem and send it to dmitryg*devart*com.