Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
To: wakamiya <wakamiya@osaka.email.ne.jp>
Cc: cygwin@cygwin.com
Subject: Re: malloc problem
References: <3A469A1C.D6958E6D@osaka.email.ne.jp>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: multipart/mixed;
 boundary="Multipart_Mon_Dec_25_10:17:41_2000-1"
Content-Transfer-Encoding: 7bit
From: Kazuhiro Fujieda <fujieda@jaist.ac.jp>
Date: 25 Dec 2000 10:17:41 +0900
In-Reply-To: wakamiya's message of Mon, 25 Dec 2000 09:51:40 +0900
Message-ID: <s1svgs98fka.fsf@jaist.ac.jp>
Lines: 38
X-Mailer: Gnus v5.3/Emacs 19.34

--Multipart_Mon_Dec_25_10:17:41_2000-1
Content-Type: text/plain; charset=US-ASCII

>>> On Mon, 25 Dec 2000 09:51:40 +0900
>>> wakamiya <wakamiya@osaka.email.ne.jp> said:

> I use Cygwin 1.1.6 with WindowsNT Japanese Edition and 
> I have had a problem on malloc.
> As I get a memory block larger than 0x8000000 using malloc,
> malloc returns NULL pointer.
> How do I get a memory block larger than 0x8000000 ?
> Or is it a Windows limitation ?

It is a configurable limitation of the Cygwin DLL. You can
control it through a registry entry.

After you incorporate the following registry file, you can
allocate a memory block up to 256MB. Take care that this entry
isn't available until you terminate all applications of Cygwin.


--Multipart_Mon_Dec_25_10:17:41_2000-1
Content-Type: text/plain; charset=US-ASCII

REGEDIT4

[HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin]
"heap_chunk_in_mb"=dword:00000100

--Multipart_Mon_Dec_25_10:17:41_2000-1
Content-Type: text/plain; charset=US-ASCII

____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology


--Multipart_Mon_Dec_25_10:17:41_2000-1
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
--Multipart_Mon_Dec_25_10:17:41_2000-1--
