This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: malloc problem


>>> 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.

REGEDIT4

[HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin]
"heap_chunk_in_mb"=dword:00000100
____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]