X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: Trouble of using very large arrays Date: Thu, 22 Apr 2004 14:06:05 CDT Organization: Rice University, Houston, TX Lines: 10 Message-ID: <4088179d.sandmann@clio.rice.edu> References: NNTP-Posting-Host: clio.rice.edu X-Trace: joe.rice.edu 1082660983 5708 128.42.105.3 (22 Apr 2004 19:09:43 GMT) X-Complaints-To: abuse AT rice DOT edu NNTP-Posting-Date: Thu, 22 Apr 2004 19:09:43 +0000 (UTC) X-NewsEditor: ED-1.5.9 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > a = (unsigned int*)malloc (rows * columns * sizeof (unsigned int)); > Rows - 100000000, Columns - 3 > Failure : Unable to allocate storage You are allocating 1.2 GB in a single request here. If you have enough memory and disk storage for swapping this might work, but in many environments it won't. You many need to reconfigure something for an allocation this large.