delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/10/02:57:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
To: cygwin AT cygwin DOT com
From: Rainer Hochreiter <rainer AT hochreiter DOT 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 DOT 2005 DOT 01 DOT 05 DOT 09 DOT 19 DOT 22 DOT 647025 AT hochreiter DOT at> <20050105100830 DOT GB5240 AT cygbert DOT vinschen DOT de> <30305 DOT 193 DOT 16 DOT 155 DOT 145 DOT 1104926914 DOT squirrel AT 193 DOT 16 DOT 155 DOT 145> <20050105124336 DOT GA6515 AT cygbert DOT vinschen DOT de> <20050105150204 DOT GA1068 AT tishler DOT net>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT 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 DOT hochreiter AT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019