Acces violation IBCQuery
Posted: Thu 08 Jan 2009 16:04
Hello,
Here is my code
When iIBCQryRd.Recno reach 61000, access to frmMain.IBCQryRd.FieldByName('TURBINE') return an error.
With the debugger if i want to read the value i have an access violation.
The select return more than 200 000 records.
if i do the same thing when there are less than 55000 records, there is no problem
Thank you for help
Regards
Here is my code
Code: Select all
frmMain.IBCQryRd.SQL.Text:='SELECT * FROM P_DATA_STEP_10MIN(:DATE_DEBUT, :DATE_FIN,:NB_TURBINE,:PRJT )';
frmMain.IBCQryRd.Prepare;
frmMain.IBCQryRd.ParamByName('PRJT').AsString:=prjt;
frmMain.IBCQryRd.ParamByName('NB_TURBINE').AsInteger:=nb_trbn;
frmMain.IBCQryRd.ParamByName('DATE_DEBUT').AsDateTime:=dt_tm;
frmMain.IBCQryRd.ParamByName('DATE_FIN').AsDateTime:=dt_tm_fin;
frmMain.IBCQryRd.Open;
//Parcours de la plage des date par pas de 10'
while (not frmMain.IBCQryRd.Eof) and (frmProgress.BoolAnnul=FALSE) do
begin
frmUpdtMnCrntAffectDataStatus.Label1.Caption:=InttoStr(frmMain.IBCQryRd.RecNo);
if (cpt mod 500)=0 then
Application.ProcessMessages;
//trouve le status dominant
try
FindStatusDominant(ibcqry_status,code_status,nom_status,fam_arret_cnstrctr,fam_arret_valorem,prjt,frmMain.IBCQryRd.FieldByName('TURBINE').AsString,
frmMain.IBCQryRd.FieldByName('DATE_HEURE').AsDateTime);
except
showmessage('PROBLEME');
end;With the debugger if i want to read the value i have an access violation.
The select return more than 200 000 records.
if i do the same thing when there are less than 55000 records, there is no problem
Thank you for help
Regards