Results 1 to 20 of 24

Thread: very strange behaviour

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: very strange behaviour

    Did you check the value during runtime? Maybe there it is true and not false? Maybe you have some uninitialised variable somewhere which causes a random value during runtime and is zeroed while under debugger?

  2. #2
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    55
    Thanked 12 Times in 11 Posts

    Default Re: very strange behaviour

    heh, I hate when physics is broken.
    maybe the executable code is out of sync? do a full clean rebuild? maybe the wrong dll/debug symbols is being loaded?
    maybe there's a background thread running? but that would take some really weird timing.
    can you look at the assembly code that is being run? maybe that might give a hint.
    Software Engineer



  3. #3
    Join Date
    Jan 2006
    Posts
    45
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: very strange behaviour

    Thanks for replying,

    I have put a qDebug() statement in the method, but that doesn't show up in the output also.
    It seems as my code is getting randomly executed. I will check for the variables to see if they are all initialized. About the assemblycode: How does one look at the assemblycode?

    Rgx

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: very strange behaviour

    Quote Originally Posted by regix
    I have put a qDebug() statement in the method, but that doesn't show up in the output also.
    Is the application compiled in debug mode?

  5. #5
    Join Date
    Jan 2006
    Posts
    45
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: very strange behaviour

    No, in Release mode with Enable warnings,
    should I compile it in Debug mode?

Similar Threads

  1. QComboBox +SUSE10.0 +qt4.1 strange behavior
    By antonio.r.tome in forum Qt Programming
    Replies: 6
    Last Post: 20th March 2006, 18:49
  2. Setting behaviour in designer
    By Morea in forum Qt Tools
    Replies: 3
    Last Post: 19th March 2006, 16:33
  3. Different behaviour on different distributions
    By Kumula in forum Qt Programming
    Replies: 17
    Last Post: 7th March 2006, 00:58
  4. Replies: 1
    Last Post: 26th February 2006, 06:52
  5. [Qt 4.1] Strange behaviour with QTableView
    By fane in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 07:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.