Re: Out of memory error
On Sat, 26 Apr 1997 05:08:29 -0400 David Alan Gay writes:
>Hi Larry
>
>This is a new one on me. Euphoria is supposed to create a swap file on
your
>hard drive when demands for memory are more than what you have
available.
I suspect the fault is in the size of the data in the buffer variable,
causing the choke. This is an issue as the program I am writing must be
able to run on machines with many different memory configurations and
sizes.
>I am not sure that it is a problem with main memory because if you look
>at my system memory below, you can see I am operating with less memory
than
>you are, yet have written some programs that involve heavy graphics and
a
>lot of file I/O. How much FREE hard drive space do you have available on
>your hard drive?
About 104Mb on that partition.
> I find the more free space I have on the hard drive, the more I can
push the
> memory envelope.
Robert Craig wrote in a message that characters are stored as integers (4
bytes each, not 1 as in C++) so the 1.9meg of characters in the file uses
7.6meg of memory to store. with only 8.7meg free in this configuration
it is pushing the edge of the memory available. A lot of the people who
will use my Freeware program are running with 4 to 8meg of total memory
and this is an issue.
One of the reasons I was looking at Euphoria was its dynamic memory
management, so I did not have to mess with the memory checking and
allocation issues with very large data files. Oh, well I guess I'll
unzip the C++ compiler and get to work. Maybe I can find some good memory
management code in Snippets to plagiarize.
Have a great day!
Larry D. Poos
-[USMC (Retar{bks}{bks}ired) Havelock, NC]-
e-mail: ldpoos at juno.com
or
Fido: 1:3629/101.6
|
Not Categorized, Please Help
|
|