Re: cancel during asyncfetchnonblocking
From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 08/18/04
- Next message: Roham: "Re: A Simple Quick Report Problem...."
- Previous message: Brian Bushay TeamB: "Re: Assign one BLOB to another"
- In reply to: Lutz Kutscher: "cancel during asyncfetchnonblocking"
- Next in thread: Martijn Tonies: "Re: cancel during asyncfetchnonblocking"
- Reply: Martijn Tonies: "Re: cancel during asyncfetchnonblocking"
- Reply: Lutz Kutscher: "Re: cancel during asyncfetchnonblocking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 17 Aug 2004 20:08:37 -0500
> AdoDS.Close;
> AdoDS.CommandText := 'select * from HugeTable where SearchField='''
>+ Edit1.Text + '''';
> AdoDS.Open;
>end;
>
>
>The problem with this seems to be, that the query is not really cancelled
>with the
>AdoDS.Close - looking at my memory usage it climbs incredibly.
>
>I tried using the OnFetchProgress event to set EventStatus to esCancel
>- the name and declaration as var parameter sounded like it could work -
>nothing.
>
>Can anyone around here tell me, how to really tell ADO to stop loading the
>data that isn't needed any longer?
Try
AdoDS.Recordset.Cancel;
AdoDS.Close;
-- Brian Bushay (TeamB) Bbushay@NMPLS.com
- Next message: Roham: "Re: A Simple Quick Report Problem...."
- Previous message: Brian Bushay TeamB: "Re: Assign one BLOB to another"
- In reply to: Lutz Kutscher: "cancel during asyncfetchnonblocking"
- Next in thread: Martijn Tonies: "Re: cancel during asyncfetchnonblocking"
- Reply: Martijn Tonies: "Re: cancel during asyncfetchnonblocking"
- Reply: Lutz Kutscher: "Re: cancel during asyncfetchnonblocking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|