Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not enough memory for file map
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00705314
Message ID:
00706177
Views:
33
>The application we are running is a night job and there are no other applications running simultaneously. This application spawns another instance of FoxPro in between and the first instance continues to process the rest of the code and finally waits for the second instance to terminate before it terminates.
>
>Do you think that I can explicitly define these parameters in the .INI file considering the fact that no other apps are running simultaneously?
>
>e.g.
>[MEMORY]
>MIN_FOREGROUND = 512000
>
Yes. You should use an INI setting for all settings if possible, so you don't have to change code to tweak the settings. You're showing a minimum setting, however, and I'm not sure that would be much use. The idea is to set it to either a maximum setting or the amount of memory available, whichever is less.

>For a server with 2GB RAM, will 500 MB of RAM be too large to be assigned to ForeGround applications?
>
No, I don't think that would cause any harm, especially if there's nothing else running. I see that Ed has cautioned you about processor limitations with this much memory.

>
>Rather than specify the memory explicitly, would it be better to determine, what is available and then make assignments?
>
The code I gave you does determine what's available, and bases the settings on that, up to the specified max. Whether or not you want to keep checking what's available at various points is something you need to determine. If there's a particular point in your code that tends to cause problems, I would call the routine right before executing that code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform