Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Rainer Hochreiter <rainer@hochreiter.at>
Subject: Re: popen() fails while system() works
Date: Mon, 10 Jan 2005 08:56:58 +0100
Lines: 27
Message-ID: <pan.2005.01.10.07.56.56.382605@hochreiter.at>
References: <pan.2005.01.05.09.19.22.647025@hochreiter.at> <20050105100830.GB5240@cygbert.vinschen.de> <30305.193.16.155.145.1104926914.squirrel@193.16.155.145> <20050105124336.GA6515@cygbert.vinschen.de> <20050105150204.GA1068@tishler.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: 193.16.155.145
User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)
X-IsSubscribed: yes

On Wed, 05 Jan 2005 10:02:04 -0500, Jason Tishler wrote:
> IMO, rebasing individual DLLs is not be very useful, unless you know
> where all of the other DLLs are based.

thanks, rebaseall makes it working - for a while ;-)

after reviewing my code i found a real big memory allocation:

    char* line = new char[std::string().max_size()];

which allocates 1073741820 in my case! well this is really much more
memory that i need for a single line read from another process using
popen()! changing this to a more reasonable size makes everything work,
even without rebaseall!

but what's the real reason why popen() results in the address
conflict and system() does not?!

-- 
Rainer Hochreiter
Research & Development
TOPCALL Internation AG
A-1230 Vienna, Talpagasse 1
Phone: +43 1 86353 198 Fax: +43 1 86353 8198
Email: rainer.hochreiter@topcallcom
WWW: http://www.topcall.com



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

