[Qt-interest] 答复: 答复: a strange problem about if
Kai Koehne
kai.koehne at nokia.com
Fri Aug 5 14:03:01 CEST 2011
On 08/05/2011 09:12 AM, ext pengliang(彭亮) wrote:
> Hi
>
> I set yMBa[ymi][lmIdx] = 0; why does it skip into if condition( if
> condition is fail).
Are you sure it's really executing the code? Maybe QtCreator, or rather
the debugger used underneath just fool you.
I've noticed that sometimes that the 'current' line Qt Creator shows is
actually one off, and similar things. Things can go also weird when
you're debugging code that has been heavily optimized by the compiler.
Try to e.g. print something in the if() statement, I bet it isn't
executed at all.
Regards
Kai
> -----邮件原件-----
> 发件人: qt-interest-bounces+pengliang=founder.com at qt.nokia.com
> [mailto:qt-interest-bounces+pengliang=founder.com at qt.nokia.com] 代表
> Thiago Macieira
> 发送时间: 2011年8月5日14:31
> 收件人: qt-interest at qt.nokia.com
> 主题: Re: [Qt-interest]答复: a strange problem about if
>
> On Friday, 5 de August de 2011 10:38:58 pengliang wrote:
>
>> I use QtCreator debug my program. I came across this problem, so take my
>
>> problem here.
>
> If it's a Creator problem, it's fine to take it here. Why do you think
> it's a
>
> Creator problem?
>
> --
>
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>
> Software Architect - Intel Open Source Technology Center
>
> PGP/GPG: 0x6EF45358; fingerprint:
>
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list