Re: popen() fails while system() works

2005-01-11 Thread Jason Tishler
On Tue, Jan 11, 2005 at 02:21:22PM +0100, Rainer Hochreiter wrote: > > On Mon, Jan 10, 2005 at 08:56:58AM +0100, Rainer Hochreiter wrote: > >> but what's the real reason why popen() results in the address > >> conflict and system() does not?! > > > > AFAICT, popen() calls fork() and system() does n

Re: popen() fails while system() works

2005-01-11 Thread Rainer Hochreiter
> On Mon, Jan 10, 2005 at 08:56:58AM +0100, Rainer Hochreiter wrote: >> but what's the real reason why popen() results in the address conflict >> and system() does not?! > > AFAICT, popen() calls fork() and system() does not. this is not true - both functions call vfork()! cygwin-1.5.12-1/newlib

Re: popen() fails while system() works

2005-01-11 Thread Jason Tishler
On Mon, Jan 10, 2005 at 08:56:58AM +0100, Rainer Hochreiter wrote: > but what's the real reason why popen() results in the address conflict > and system() does not?! AFAICT, popen() calls fork() and system() does not. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers

Re: popen() fails while system() works

2005-01-09 Thread Rainer Hochreiter
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* li

Re: popen() fails while system() works

2005-01-05 Thread Jason Tishler
On Wed, Jan 05, 2005 at 01:43:36PM +0100, Corinna Vinschen wrote: > > well, do i have to rebase all DLLs on my installation, or only that > > one mentioned by the error message? won't destroy my installation > > if doing the wrong thing;-) > > I'd try to rebase only your own dll first. IMO, reba

Re: popen() fails while system() works

2005-01-05 Thread Corinna Vinschen
On Jan 5 13:08, Rainer Hochreiter wrote: > > See /usr/share/doc/Cygwin/rebase-2.3.README. > > is this a new package? Nope. > didn't find it in my installation, but now I have it ;-) > > well, do i have to rebase all DLLs on my installation, or only that > one mentioned by the error message? >

Re: popen() fails while system() works

2005-01-05 Thread Rainer Hochreiter
> On Jan 5 10:19, Rainer Hochreiter wrote: >> 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

Re: popen() fails while system() works

2005-01-05 Thread Corinna Vinschen
On Jan 5 10:19, Rainer Hochreiter wrote: > 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! us

popen() fails while system() works

2005-01-05 Thread Rainer Hochreiter
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 execu