🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #56

How to define HUGE array memory ??

#56
From: singularity3000
Date: Fri, 30 Jan 2009 10:52
63 lines
3301 bytes
Hi all,

First, sorry for asking this question in more than one group, it's a
little urgent and I don't know which forum is the best for this kind
of questions.

I'm using Borland Builder 4.0 (yes, it's kind of old but I like it
very much!!) on Windows-XP computer that have 1.0 GB of RAM, and for
an application that I'm trying to write, I need to use LOT LOT of
memory, I need to use huge Float and Int arrays, for example let's say
(I'm not sure exactly about the exact size that I'll need) -

float HugeFloatArray[752538742];
int   HugeIntArray[475538742];
   .
   .
   .
   .

HugeFloatArray[35] = 28.725;
HugeIntArray[43735] = 1082;
  .
  .
  .
  .

But when I try it, I'm getting all kind of strange error messages like
-

"[Linker Error] Fatal: Error detected (LME1398)."

Then what is the best (and most easiest !!) way to define HUGE arrays
in the memory? I guess that becouse my PC have only 1.0 GB of RAM
memory the application will actually have to use lot of read/write to
the hard disk which will be used as part of the memory....... I guess
that it will make my application run much slower :-( , also my
application will have to do lot of read/write to this arrays, is it a
problem? becouse I know that there is a limit to the number of times
that you can read and write to the hard disk..... I don't want to ruin
my PC......

So what is the best solution for this?

Can someone please show me a clean piece of code that I can do copy-
paste and check it right away without having to search more about it
in the internet/google ?

Thanks very much!


( By the way, if someone remember, some years ago I used to read the
"Borland Builder newsgroups" in an "old fation" web base site, not
through google, you could send there messages without any
registration, and without having to use the Internet Explorer to read
and write messages, I remember someone by the name Remy that was a
'TeamB' and used to answer lot of questions and help.... is there
still access to this old pages? I can't find it in google.)


Hope for some good answers.

Thanks very much!
John.
Technical Details
Message-ID: <8694ff99-992c-4afc-bb3e-03f1cd437372@r41g2000prr.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!r41g2000prr.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,766406a0c528c756,start
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!r41g2000prr.googlegroups.com!not-for-mail
From: singularity3000@gmail.com
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to define HUGE array memory ??
Date: Fri, 30 Jan 2009 02:52:44 -0800 (PST)
Organization: http://groups.google.com
Lines: 63
Message-ID: <8694ff99-992c-4afc-bb3e-03f1cd437372@r41g2000prr.googlegroups.com>
NNTP-Posting-Host: 217.132.182.95
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1233312764 16769 127.0.0.1 (30 Jan 2009 10:52:44 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 30 Jan 2009 10:52:44 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r41g2000prr.googlegroups.com; posting-host=217.132.182.95; 
 posting-account=ayUpbQoAAABNCC9CVBe-7tZFqriv1dxv
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
 CLR 1.1.4322),gzip(gfe),gzip(gfe)