Allocating large arrays (2011-04-24 07:39 by ukimiku #57015)
Dear SHIRAISH Kazuo,
I would like to allocate a numerical array with 40 000 000 elements (DIM a(40000000)). This fails, as the interpreter says that virtual memory had not been allocated. There is enough pyhsical RAM to hold that many numbers, and neither OPTION ARITHMETIC RATIONAL nor OPTION ARITHMETIC DECIMAL_High have been requested, just normal float numbers. How can I increase the physical memory available to DECIMAL BASIC?
RE: Allocating large arrays (2011-04-24 10:07 by SHIRAISHI Kazuo #57017)
The solution is contrary among the decimal mode and the binary mode.
In the decimal mode, it may be resolved by increasing VirtualMemory in BASIC.INI.
But in the binary mode, it may be resolved by decreasing it.
These are done automatically when BASIC.exe finishes and re-starts to a certain extent.
See also for BASIC.INI http://hp.vector.co.jp/authors/VA008683/english/html/basi1hwl.htm
RE: Allocating large arrays (2011-04-24 16:14 by ukimiku #57020)
Thank you. Problem: there is no BASIC.ini file in my installation folder of DECIMAL BASIC. I have made visible all invisible files, still there is no BASIC.INI. Could you post/paste/e-mail such a file, please? I understand your suggestions and would like to try them out.
RE: Allocating large arrays (2011-04-25 08:20 by SHIRAISHI Kazuo #57030)
BASIC.ini is made when BASIC.EXE finishes.
On Linux or MAC, it may be found in your home folder, and it is an invisible file named .basic.ini.
On Windows, BASIC.ini is made in the folder where BASIC.EXE exists.
RE: Allocating large arrays (2011-04-26 03:28 by ukimiku #57038)
After BASIC.EXE finishes, I have the following files in its folder:
BASIC (compiled html help file)
BASIC (.exe, the interpreter)
BASIC (.KW1)
BASIC (.KW2)
BASIC (.KWF)
BASIC (.KWS)
There are no more BASIC.* files, only your demo folders (COMM, Complex, FRACTAL...). I have made visible any file, but still there is no .INI file. Could you please post a typical .INI file here in the forum? I could paste that into my text editor and save it as BASIC.INI (if that would work).
RE: Allocating large arrays (2011-04-27 00:42 by ukimiku #57057)
Thank you, I understand. Your last message made me see the problem (when BASIC.EXE cannot write BASIC.INI, any error messages are being suppressed). When I run BASIC.EXE as an administrator (under Windows Vista), then and only then, BASIC.INI gets created.