[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Bug in KProcess?
From:       Sebastian_Trüg <sebastian () trueg ! de>
Date:       2002-09-02 15:47:34
[Download RAW message or body]



> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> #if Sebastian Trueg
> > Hy,
> >
> > it seems to be impossible to pass several Communication flags or'ed
> > together to the start() method. I get
> >
> > no matching function for call to `KProcess::start (KProcess::RunMode,
> > int)' /opt/kde3/include/kprocess.h:273: candidates are: bool
> > KProcess::start(KProcess::RunMode = NotifyOnExit,
> > KProcess::Communication = NoCommunication)
> >
> > for every combination.
> > But I need to pass the NoRead flag in conjunction with AllOutput. I
> > there a trick or is this impossible?
>
> Try a cast:
>
> process->start
> (
>   KProcess::NotifyOnExit,
>   KProcess::Communication(KProcess::NoRead | KProcess::AllOutput)
> );
>

Thanx. That worked. But I still get no usable output. Always length -1!
???!!!
Any idea?

> Cheers,
> Rik
>
> - --
> http://rikkus.info
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE9ch1I6rehpl6X9l0RAvCeAJ94CQaVd1xzb6xQcrkuQlHZ8Bt3yQCeOBZb
> BHfdBViIGrBXaaya+moAlFA=
> =FaVC
> -----END PGP SIGNATURE-----
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic