Re: newbie: deactivate query before freeing?



"swansnow" <schultz@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1127950675.863873.233630@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I'm going to do this in small steps now, after having OE crash on me
three bloody times in a row, the last time as I was typing the final
word before signing off.


> How about:
>
> myQuery := TQuery.create(nil);
> try
> myQuery.sql.text := 'select * from blah';
> ...
> finally
> freeAndNil(myQuery);
> end;

Yes, that's right.

Groetjes,
Maarten Wiltink


.