[mythtv] [PATCH] for mythgame xml parsing (need help)
brejc8 at vu.a.la
Fri Aug 27 12:03:49 EDT 2004
Joseph A. Caputo wrote:
> Well, I'm no expert in this area, but after looking at your patch I have
> a few thoughts:
> - The documentation for QFile says that when using QFile::open(int, FILE
> *), if the FILE * is stdin, stdout or stderr, seeking may be disabled.
> I have to wonder if opening a pipe also disables QFile seeking, which
> might cause problems with QDomDocument::setContent()...
> - I wonder if, since you're opening a FILE * connected to a pipe, you
> need to rewind the QFile before reading from it...
> - Another option might be to use QProcess instead of a command pipe;
> then you could read stdout of the QProcess into a QByteArray and pass
> that into QDomDocument::setContent() ...
> - or, you could just redirect the stdout of the xmame command to a temp
> file instead of a pipe and read that file normally.
That is exactly what I did try. I dumped the xml to a file but it still aborts.
> - Also, if you have Qt built with debug enabled, you could see why it's
> crashing under gdb.
I was hoping I wouldn't have to debug Qt or libc++.
More information about the mythtv-dev