delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/05/04:19:55

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: popen() fails while system() works
Date: Wed, 05 Jan 2005 10:19:24 +0100
Lines: 34
Message-ID: <pan.2005.01.05.09.19.22.647025@hochreiter.at>
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

my main program 'mpsvcd.exe' dynamically loads a shared library using
dlopen(). one of the functions from this shared library calls popen() to
read the standard output from another executable - and this fails with the
error messages listed below! using system() instead of popen() to start
the executable works fine, except that i can't read it's standard output.
what's the difference between using popen() and system() here?
under linux popen() works also! 

any hints?

some more infos:
my main program and the shared library are built with cygwin, while
the called executable is a Win32 exe file.

error output:
C:\cygwin\opt\topcall\bin\mpsvcd.exe (1340): *** unable to remap
C:\cygwin\bin\cygintl-2.dll to same address as parent(0x1CC0000) !=
0x1CD0000
   1884 [main] mpsvcd 2308 sync_with_child: child 1340(0x63C) died before
   initialization with status code 0x1
  18224 [main] mpsvcd 2308 sync_with_child: *** child state child loading
  dlls
EXCEPTION - reason: popen() failed for command
'/opt/topcall/bin/mytest.exe': Resource temporarily unavailable

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