[Qt-interest] this is the problem i faced wile using QProcess and how forum peoples help me to find the solution
Princy K. V.
princy.kv at nestgroup.net
Mon May 18 08:13:33 CEST 2009
Hi,
Thanks for ur respone ..
My application is running in windows...when I run the xx.exe(linux application) on cygwin , I don't have any such issues..prblms arise when I run the same from my qt application...why is it so??your suggestions please...
________________________________
From: Chandru... [mailto:sekarwagmare at gmail.com]
Sent: Monday, May 18, 2009 11:33 AM
To: Princy K. V.
Subject: this is the problem i faced wile using QProcess and how forum peoples help me to find the solution
once i faced the same problem in QProcess() ... go through this mail and u will find how we find the exact problem ...
---------- Forwarded message ----------
From: chandrasekar wagmare <sekarwagmare at gmail.com>
Date: Tue, Mar 24, 2009 at 2:28 PM
Subject: Re: [Qt-interest] QProcess output every five seconds ..
To: "R. Reucher" <rene.reucher at batcom-it.net>
Cc: qt-interest at trolltech.com
thanks for reply ...
yes you are right ... "glxgears | less" gives exactly the same time to output as in QProcess() readyReadStandardOutput() signal ... so the only way is to edit the glxgears source ....! ok thanks for clearing it ... otherwise i kept bothering in QProcess() ..
thank you
On Tue, Mar 24, 2009 at 2:02 PM, R. Reucher <rene.reucher at batcom-it.net> wrote:
On Tue March 24 2009 08:35:08 chandrasekar wagmare wrote:
>
> [snip]
> ...
>
> and agin after 5 minutes it appending the same amount of text ....
> i dont know how to solve the problem .... please help ..
Most probably it's a problem of an incorrectly setup buffering method... and
you won't be able to solve this from within your calling program.
Either "patch" the program you are calling to use line buffering --
setlinebuf(stdout) -- or use fflush(stdout) every now and then in this
program. If you can't do this, then there's no way to solve it.
It's NOT a problem of QProcess or anything you could solve by any trickery
here... I have similar issues with some of the programs that I call from some
of my apps and there's no way around it (at least no platform independent
one).
I've never tried this with glxgears, but an easy way to check if it is one of
those programs which behave "incorrectl" would be to use "glxgears | less"
for example. This is basically the same...
(yes, just confirmed: it behaves exactly this way!)
HTH, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
It is one of the superstitions of the human mind to have imagined that
virginity could be a virtue.
-- Voltaire
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
--
CHANDRU
--
WAGMARE
***** Confidentiality Statement/Disclaimer *****
This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090518/ffb996c1/attachment.html
More information about the Qt-interest-old
mailing list