Results 1 to 4 of 4

Thread: Runtime error QtGui4.dll VS2008

  1. #1
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Runtime error QtGui4.dll VS2008

    Hi,
    I have a working application developed natively in Linux using Qt, DCMTK, MITK, ITK and VTK and I'm trying to deploy it now on Windows XP. I was able to solve most dependencies and problems however I'm having a really annoying runtime issue and I'm asking you for you help.

    So let's explain better....
    When I try to run my application it throws an error as ask me if I want to debug.
    I used depends to track down the error to QtGui4.dll. These 2 lines report what happens:

    -First chance exception 0xC0000005 (Access Violation) occurred in "c:\documents and settings\[...]\QTGUI4.DLL" at address 0x65013E66.
    -Second chance exception 0xC0000005 (Access Violation) occurred in "c:\documents and settings\[...]\QTGUI4.DLL" at address 0x65013E66.


    I've found some thread about an issue more or less related to mine, things I've tried:
    - Checked my lib/include configs;
    - Reinstalled VC Redistribute;
    - Qt version is 4.7, the same I used to compile the aforementioned libs;
    None of them worked. Btw, the application works when I run it as Release inside VS2008, throwing the 1st Chance Error and when I click debug it runs fine (no more errors).

    Specs:
    Visual Studio 2008 Professional
    MS Windows XP SP3
    Qt 4.7

    Thank you for any help.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Runtime error QtGui4.dll VS2008

    Probably a problem with your code, maybe access overrun or something similar?

  3. #3
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Runtime error QtGui4.dll VS2008

    Quote Originally Posted by squidge View Post
    Probably a problem with your code, maybe access overrun or something similar?
    Thanks for your quick reply squidge.
    I don't think there's a problem with my code since I had the same application, almost the same code, running on Linux fine before, but I'll check to make sure and will post my results.

  4. #4
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [SOLVED] Runtime error QtGui4.dll VS2008

    Well, I've found the error, and was more or less in my code. The problem was with the folder structure inside the Visual Studio project, there're some config files that I created that were missing in the Release folder thus leading to that error. I use Eclipse to develop on Linux.

    I had to copy&paste them manually and now it's working like a charm

    I also found out that the QtCreator debug has better error messages than the ones in Visual Studio, it gave me a hint about QColor???*!* function or something like that (inside QtGui4.dll) so I realized that was those config files.

    Thank you all!!

Similar Threads

  1. Replies: 1
    Last Post: 25th September 2010, 09:20
  2. LNK 2019 Error while compiling qt program in VS2008
    By mevkurray in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 7th February 2010, 01:29
  3. Replies: 1
    Last Post: 6th December 2009, 15:28
  4. Runtime Error
    By sophister in forum Qt Programming
    Replies: 9
    Last Post: 15th June 2009, 07:28
  5. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 08:18

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.