Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: popen() fails while system() works Date: Mon, 10 Jan 2005 08:56:58 +0100 Lines: 27 Message-ID: References: <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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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/