[Qt-interest] detached QProcess
Chandru...
sekarwagmare at gmail.com
Tue Jul 21 14:37:50 CEST 2009
may be QSocketNotifier() can help u ... test the health of the file
descriptor .. but i am not sure ..
On Tue, Jul 21, 2009 at 6:02 PM, Sarvesh Saran
<Sarvesh.Saran at synopsys.com>wrote:
> Hi,
>
>
>
> I have a GUI application that starts a external binary in a QProcess.
> ..(new QProcess(this)) …
>
>
>
> However there are cases when the external binary crashes which in turn
> causes my GUI application to crash as well.
>
>
>
> Detaching the QProcess prevents this from happening but then I am unable to
> read the QProcess standard output and stderr..
>
>
>
> I tried redirecting the detached QProcess output to a QTemporaryFile and
> reading from the file…but the detached process fails to write anything to
> the file in the first place.
>
>
>
> I was wondering if there is a way to prevent the GUI from crashing if it’s
> QProcess crashes…any ideas?
>
>
>
> Thanks,
>
> Sarvesh
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090721/24d2e067/attachment.html
More information about the Qt-interest-old
mailing list