Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not Enough Memory to complete this operation
Message
From
10/01/2000 20:31:39
 
 
To
10/01/2000 16:54:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00315784
Message ID:
00315881
Views:
24
>I am using VFP 6.0 SP3 with NT 4.0 SP 5 on a Dell 333 with 320 MB of RAM. I have a bizzare matrix type calculation that needs to be performed and I am using an Array to store the data to be calculated.
>
>There are 25 columns in the cursor that are being extracted to an array. The first instance inside the loop is for 1 row. Everytime I run the following code I get the error "there is not enough memory to complete this operation":
>
>COPY TO ARRAY laCR WHILE ISDIGIT(db_yyyymm) AND group_by = "A" FIELDS LIKE cr*
>
>I put a set step prior to this code and then would click on the resume button. I would get the error, suspend and hit the resume button a second time and there was NO problem.
>
>The value of SYS(12) [available memory in bytes]is 655360.
>the value of SYS(1016) [user object memory use] is 830488.
>
>Not sure why the code will go thru fine on the second resume click.
>
>Any ideas?...

No idea of why this happens, but here's one workaround using (ugh) macro-expansion.
LOCAL cSelections, nCtr
cSelections = ''
FOR nCtr = 1 TO FCOUNT()
   IF LEFT(FIELDS(nCtr)+' ',2) == "CR"
      cSelections = cSelections + ',' + FIELDS(nCtr)
   ENDIF
ENDFOR
cSelections = SUBST(cSelections,2)
SELECT &cSelections FROM (ALIAS()) ;
  INTO ARRAY laCR ...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform