Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local Views use mucho memory
Message
From
25/04/1997 14:28:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Local Views use mucho memory
Miscellaneous
Thread ID:
00029711
Message ID:
00029711
Views:
62
I have just ran across a strange memory issue with 3.0b. Each time you run the following code, several megs of memory get chewed up and are not released until I exit VFP. Each time you run it, more memory is gobbled up.


CREATE DATABASE Testmain
CREATE TABLE Customer (Name C(40))
CREATE VIEW Customer_View AS SELECT Customer.Name FROM Customer

FOR nLoop = 1 TO 1000
USE Customer_View IN 0 NODATA
= REQUERY("Customer_View")
USE IN Customer_View
ENDFOR


If you run this several times (or set the FOR loop to a few thousand) you will run out of "virtual" memory etc. I have tested this on NT 4.0 and Win 3.1 on 32MB machines with similar results.

I couldn't find any previous threads on this. Anyone with an idea on what's going on or how to prevent it?

BTW, no problems running it under VFP 5.0.

Thanks!

-Doug-
Reply
Map
View

Click here to load this message in the networking platform