(Mike Mitchell)
5/11/2012 8:50:00 AM
On Thu, 10 May 2012 17:38:48 +0100, MM <kylix_is@yahoo.co.uk> wrote:
>On Thu, 10 May 2012 09:05:23 -0700, Karl E. Peterson <karl@exmvps.org>
>wrote:
>
>>MM laid this down on his screen :
>>> I'm adding reams of data to a ListView, whereupon, inevitably, at some
>>> point an out-of-memory error occurs. I'd like to pre-empt the error
>>> and warn the user that an OOM error is likely very shortly, and thus
>>> give the user a chance to abandon the current procedure.
>>
>>OOM rarely refers to actual memory. It's the catch-all error phrase
>>chosen for when no other more closely fits.
>>
>>If you're blowing up a LV, I'd recommend looking into virtual LVs (or
>>grids) instead.
>
>Okay. I'm going to work up a paging scheme instead.
>
>MM
Turned out to be a doddle. Whacked a VideoSoft FlexGrid on the form
instead of ListView, set VirtualData to True (default, anyway),
whacked in an ADO recordset to DataSource. Job done!
MM