[Qt-interest] Tcp Socket problem (with bonus Menu glitch)
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Wed Apr 22 05:28:40 CEST 2009
That usually occurs whene the parent class QIODevice is invalid, or already deleted.
Is it possible, a non-blocking QIODevice call you are making, occurs, but the IO device goes out of scope?
Scott
PETA
People Eating Tasty Animals
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of fungos
> Sent: Tuesday, April 21, 2009 6:43 PM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Tcp Socket problem (with bonus Menu glitch)
>
> More details about the Network crash:
>
> it crashes at qiodevice.h -> Q_DECLARE_PRIVATE(QIODevice)
> with this = 0xbaadf00d QIODevice *
>
>
> On Tue, Apr 21, 2009 at 6:20 PM, fungos <fungos at gmail.com> wrote:
> > It crashes when trying to read the string, this was based on network
> > fortune sample from docs.
> >
> > QDataStream in(toServer);
> > log->append(tr("[CLI] Received message from server"));
> >
> > QString str;
> > //in >> str;
> >
> >
> > On Tue, Apr 21, 2009 at 1:43 PM, Neel Basu <neel.basu.z at gmail.com> wrote:
> >> On Tuesday 21 April 2009 10:42:22 fungos wrote:
> >>> Hi, I'm having issue testing some problems:
> >>>
> >>> 1. With Tcp sockets, when I try to read a buffer from a socket it
> >>> crashes (after readReady signal).
> >>
> >> I'vent gone through your code
> >> However I think you have used
> >> either read(char * data, qint64 maxSize)
> >> or read(qint64 maxSize) or something similer to read the data.
> >> and maxSize is more than the bytesAvailable()
> >> Try using readAll()
> >> It might be fixed
> >>
> >>> 2. I'm having a problem with menu, that the 2 first menus won't work
> >>> with mouse over, just if you come from a over of another menu option
> >>> (this happens if I instantiate TcpTest. If I comment that line the
> >>> menu works normal).
> >>>
> >>> You can download my tests from here:
> >>> http://danny.cabelo.googlepages.com/FBBF.rar
> >>>
> >>> Thanks
> >>
> >>
> >
> >
> >
> > --
> > Animal Frontline Liberation
> >
>
>
>
> --
> Animal Frontline Liberation
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list