Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insufficient Memory

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I have an app in FoxPro for Windows 2.6 that was working ok, and suddenly an error appears that say "Insufficient Memory" I tried the app in several PC and the same error appears?

Do you have any idea about this?

Thanks for your comments

YV
 
Hello.

There are more than one reason for this, but most likely this error appears with the combos or listboxes on fast pc's. Note: is not associated with 'Divide overflow' error wich appears only at startup and MS has a patch for.

If this is your case, please reply.

Anyway, you can check the
They have there a function wich slows down the combo, so you won't get that error anymore.

Your mileage may vary, but if this is your case, reply, so I can give you more apropriate info.

Hope this helps
Grigore Dolghin Grigore Dolghin
Class Software
Bucharest, Romania
 
You need to check your CONFIG.FPW file. You should have one either in your default FoxPro installation directory or the start up directory of your Fox app. It may have gotten moved or deleted. You might need to include a line in it that says something like:

mvcount = 1024

This sets the maximaum number of memory variables that FoxPro can use, instead of the default of 256. You can set it to a number between 128 and 65000.

Or (taken from FoxPro help):

memlimit = 80, 1024, 4096

Where 80 = 80% of available system memory, 1024 = 1024 K minimum and 4096 = 4096 K maximum.

Dave S.
 
There is one other instance that will give you the "insufficient memory" error, even though you may have plenty of memory:

Trying to create an array of more than 65,000 elements. This is a hard maximum in FoxPro, making it impossible, say, to create an array of 10,000 rows and 7 columns. The cause may be a COPY TO ARRAY statement, an AINS statement, or a DECLARE statement, among others. Robert Bradley
 
Speaking of which, ADIR() is a good candidate for producing that error. (If you're not familiar, ADIR() creates an array of files and their attributes in the path specified.)
Since the app has been running but has just started producing that error, is it running in a directory where there are many many files? If it is by chance, doing an ADIR() call on say a network directory, it will produce that error on any pc it runs on, that does an ADIR() on that directory.

Dave S.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top