Hello,
In my program i've a lot of TMyQuery who are genrated by code...
One of them give me a strage result when i'm trying to use the Free method...
this query is not dependant of another one but she is in a loop. In my loop, everething is ok, all the code works perfectly.
After the the first loop, when i free all queries, just this query create this EInvalid pointer...
Have you any idea?
I'm on Delphi RAD 2007 with MyDac 5.55.0.37
-----------------------------------------------------------------
Example of code
NumEtape := 2250 (for example)
for each record of query1 with no param
do something...
Request2.connection:=myconnection;
request2.sql.clear;
request2.sql.add('select title from dvdbase.dvd where num_etape=:NumEtape');
request2.parambyname('NumEtape').AsInteger := NumEtape;
request2.execute;
request2.first (assuming we have a record -> allways true)
do something...
and re do something....
at the end;
request1.free -> ok
request2.free -> EInvalidPointer
If i not use the free method, i can make all the loop i want but when the form is closed, the EInvalidPointer appears...