Results 1 to 2 of 2

Thread: debugging in Visual Studio

  1. #1
    Join Date
    Apr 2007
    Rakovnik, Czech Republic
    Thanked 3 Times in 3 Posts
    Qt products

    Default debugging in Visual Studio

    When I run the release version of my application on my computer, it runs fine. On most other computers it also runs fine, but on some it crashes with the following error report:

    Error signature:
    AppName: dune.exe
    ModName: qtqui4.dll
    Offset: 00049d2f (something like this... but actually different w/my current app)
    So I went back and looked at the debug version; when I "Start Debugging" in Visual Studio 2005 it crashes with the following error message:

    Unhandled exception at 0x6505bdb5 (QtGuid4.dll) in dune.exe:
    0xC0000005: Access violation reading location 0x464d6f63.

    Unfortunately, it doesn't show me where in the code my problem is; instead the problem is shown to be here in qwidget.h:

    Qt Code:
    1. inline Qt::WindowType QWidget::windowType() const
    2. { return static_cast<Qt::WindowType>(int(data->window_flags & Qt::WindowType_Mask)); }
    To copy to clipboard, switch view to plain text mode 

    I'm pretty sure the problem has to do with a pointer(s) in my application... but I'm not sure which. Is there a way to find this using Visual Studio's debugger?

  2. #2
    Join Date
    Feb 2006
    Oslo, Norway
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: debugging in Visual Studio

    Check the call stack window.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    vonCZ (26th November 2008)

Similar Threads

  1. Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1
    By BrainB0ne in forum Installation and Deployment
    Replies: 3
    Last Post: 19th August 2008, 16:49
  2. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 20:56
  3. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 17:21
  4. Qt configure with
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 09:17
  5. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.