[Qt-interest] checking the return value of connect
Constantin Makshin
cmakshin at gmail.com
Fri Jul 8 17:47:20 CEST 2011
The problem is that ASSERT() statements are [usually] removed from release builds. :)
On Friday, July 08, 2011 07:32:49 PM Atlant Schmidt wrote:
> Mandeep:
>
> If connect() fails, you might want to ASSERT(); we do.
> So ASSERT( connect( ... ) );
>
> Atlant
>
> -----Original Message-----
> From: qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com [mailto:qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com] On Behalf Of Mandeep Sandhu
> Sent: Friday, July 08, 2011 09:46
> To: Thiago Macieira
> Cc: qt-interest at qt.nokia.com
> Subject: Re: [Qt-interest] checking the return value of connect
>
> > Considering QObject::connect prints a warning when it can't connect, why were
> > you spending time searching for the problem before fixing the warning?
>
> Because of the verbosity of my logs! :) It got lost in the storm of
> logs generated (it was running on an embedded box and there was no
> color support for different log levels).
>
> -mandeep
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110708/763e2b60/attachment.bin
More information about the Qt-interest-old
mailing list