delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-Id: | <5.2.0.9.2.20030227083416.01dfb1e0@pop3.cris.com> |
X-Sender: | rrschulz AT pop3 DOT cris DOT com |
Date: | Thu, 27 Feb 2003 08:40:04 -0800 |
To: | cygwin AT cygwin DOT com |
From: | Randall R Schulz <rrschulz AT cris DOT com> |
Subject: | Re: mem allocation / heap_chunk |
In-Reply-To: | <3E5E3A55.2050008@inf.ethz.ch> |
Mime-Version: | 1.0 |
Fabrice, It would seem that the answer is right there on the page you referenced. You can script a change to that registry entry via the Cygwin regtool script. You can do this in an install or post-install script or upon each invocation of your application, providing it's invoked via a script. The man page for regtool includes sufficient detail to enable you to incorporate this sort of functionality in your software. I recommend that you consider carefully the logic you use to alter the "heap_chunk_in_mb" key so that you don't undermine an existing customization already applied by your end user. Randall Schulz At 08:18 2003-02-27, Fabrice Marchal wrote: >Hi, >I have come accross the 384 Mb limit for allocating memory in cygwin. >(e.g. char* pnt = new char[ long size = 500*1024*1024 ]; will not work ) > >I have been able to modify this using the workaround documented in the >Users Guide (http://cygwin.com/cygwin-ug-net/setup-maxmem.html) > >I would like to know if there is a way to do the same within code so >that end-users >who receive a cygwin-compiled code do not require to go into the hassle of >using regtool or regedit > >Is that feasible? > >Thanks >fm -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |