Results 1 to 8 of 8

Thread: Crash in qtgui4.dll

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Crash in qtgui4.dll

    Most probably you don't even need to dwell in the Qt lib since the problem is probably in your code, just the crash it self happens in Qt.
    Run your app in a debugger, and see which is the last line in your code before the crash - this is where your problem is.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,349
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Crash in qtgui4.dll

    Quote Originally Posted by high_flyer View Post
    Most probably you don't even need to dwell in the Qt lib since the problem is probably in your code, just the crash it self happens in Qt.
    Run your app in a debugger, and see which is the last line in your code before the crash - this is where your problem is.
    Well usually, but not always. If memory has been corrupted earlier by some application code, the problem may not show up until the corrupt memory is accessed. In general though, knowing which line in the app causes the crash usually points in the right direction.

    I remember a colleague of mine who spent days debugging through the Motif libraries because he was convinced the code was buggy. Of course, it was his code that was at fault...

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Crash in qtgui4.dll

    Well usually, but not always.
    Did I say always?
    I said probably!
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,349
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Crash in qtgui4.dll

    I guess I meant to say that the problem may not be
    the last line in the code before the crash
    . However, crashes are almost always the programmer's fault. Except in my code, of course...

  5. #5
    Join Date
    Jul 2010
    Posts
    14
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Crash in qtgui4.dll

    Thanks for the answers.

    I hope i find the crash. I had a memory leak in my application, and sometimes it crashes.
    That never appears on my machine, because my machine had much more ram than the testmachine.

Similar Threads

  1. Runtime error QtGui4.dll VS2008
    By mbisotto in forum Installation and Deployment
    Replies: 3
    Last Post: 20th October 2010, 19:52
  2. Crash gracefully? No crash!
    By lni in forum Qt Programming
    Replies: 0
    Last Post: 7th July 2010, 03:59
  3. how to optimize the size of QtCore4.dll and QtGui4.dll
    By lovelypp in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2008, 11:28
  4. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  5. Compiling QtCore4 and QtGUI4 as small as possible
    By pkirk25 in forum Qt Programming
    Replies: 5
    Last Post: 8th December 2006, 21:50

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.