Well, heck, that IS easy!

But, no difference. And, because Windows just likes to have its ears 
scratched, I rebooted after changing the cache setting before I tested 
my app.

Okay, overload of the term GRID.

What I'm using is NOT a VFP Grid. It's an OCX tool from DBI called 
ctGrid. It has a lot of nifty eye candy and benefits over the VFP native 
objects. Plus, once you get your head around it, it's pretty easy to 
use. And after using their code for over 10 years, I've learned the 
pitfalls and other traps to avoid. Until this, I've not run into 
anything that hasn't been fixable. If anyone wants to see what it looks 
like/does, I'd be happy to send screen snaps. POS/inventory control apps 
are sooo exciting!!! zzzzzzz

What the AddComboItem does is load data into the ctGrid's memory pool so 
it can manage the list/array. Then, as the user types in a cell on the 
grid, it auto-displays a dropdown list with matching SKUs. A simple 
incremental search. Very fast, very solid. As I understand it, they 
write everything in Visual C+ and the company, DBI has been outstanding 
to support problems. It's just that this time I've run into something 
that really doesn't look like their problem.

But, I'm beginning to wonder...what if I used a VFP Grid with a 
combo...I've already spent more time trying to figure this out than it 
would have taken to replace the grid.

Thanks Dan!

Mike

> (I asked if write caching was turned off.)
>
> On 3/3/2011 12:17 PM, Mike Copeland wrote:
>> c) You got me here. Tell me how to do that and I'll try it! But it seems
>> odd that running the EXE from a network drive is fast. I mean, I THINK
>> that the local drive is used for cursors and caching and such when
>> running the EXE from a network drive, so why would it be different????
> Easy.  In Win7, "Computer", right click on the drive.
>       Click on 'Properties'
>       Select the 'Hardware' tab.  Click the 'Properties' button.
>       Select the 'Policies' tab.  There are two toggle buttons.
>       UNselect the 'Better Performance' choice.
>
> Note:  I don't really believe this is the problem, but it's a cheap
> thing to check.
>
> The symptoms still sound a lot like memory 'thrashing' due to allocating
> temporary areas for the method that adds to the listbox.
> That means the swapfile.  Make sure that
>    a) The swapfile has a reasonable size.
>    b) The swapfile size is fixed.  Do NOT 'let Windows manage it'.
>
> Your loop is
> SCAN WHILE !EOF('temp')
>         thisform.ctGrid.addcomboitem(1,temp.sku)
> ENDSCAN
> I don't see any .addcomboitem() method in a grid, so I guess this is a
> custom method that deals with a column in the grid.  My guess is that
> something about the way this is coded, combined with some change in the
> way Windows 7 handles the memory allocation, may be causing the problem.
> What does this method do, exactly?
>
> Dan Covill
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to