Subject TIB_Query.FieldByName().AsInterger -> Accessviolation
Author Queck Rainer
Hello List,

I have a Query always doing the same select on the same table.

In a loop :
<MyQuery>.Refresh;
with <MyQuery> do
begin
First;
while not EOF do
begin
try
r:=2+FieldByName('DESTINATION').AsInteger;
except
....;
end;
....

I very often end in the exception because of a accessviolation :-(
What am I doing wrong?
Thanks for hints.

Rainer