FIX: Insufficient Memory in Visual FoxPro on Fast Computers (179287)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
This article was previously published under Q179287 SYMPTOMS
When using a large table, cursor, or array (over 275 records) as the row
source of a combo box, you may see the following error message:
There is not enough memory to complete this operation.
RESOLUTION
Here are four workarounds for this problem:
- Upgrade to Visual FoxPro version 5.0.
-or-
- Use a grid control.
-or-
- Use a list box control.
-or-
- Limit the size of the underlying table, cursor, or array to 275 records
or less.
The following code snippets illustrate implementation of the grid and list
box workarounds based on the code example provided in the MORE INFORMATION
section.
To use a grid instead of a combo box, replace the cbocombo class definition
with the following code:
DEFINE CLASS cboCombo AS GRID
LEFT = 10
TOP = 25
WIDTH=140
HEIGHT=100
VISIBLE=.T.
RECORDSOURCETYPE=1
RECORDSOURCE="Customer"
ENDDEFINE
To use a list box instead of a combo box, replace the cbocombo class
definition with the following code:
DEFINE CLASS cboCombo AS LISTBOX
LEFT = 10
TOP = 25
WIDTH=140
HEIGHT=100
VISIBLE=.T.
ROWSOURCETYPE=6
ROWSOURCE="Customer.cust_id"
ENDDEFINE
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This has been corrected in Visual
FoxPro 6.0.
Modification Type: | Major | Last Reviewed: | 9/30/2003 |
---|
Keywords: | kbbug kbfix kbprb KB179287 |
---|
|