Results 1 to 4 of 4

Thread: Access Violation with VS2008

  1. #1
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Access Violation with VS2008

    With VS2008 the following code occurs an error:

    Qt Code:
    1. QVariantList list;
    2. list.append(QVariant("1"));
    3. QVariant var(list);
    4. list.clear();
    5. var.clear(); // <-- Error
    To copy to clipboard, switch view to plain text mode 

    The same code runs successful with VS2005. I tried the Qt-Versions 4.3.4, 4.5.2, 4.6.1 and 4.6.2.

    I think it is a VS2008 settings problem. But when I’m compare the VS2005 and VS2008 project settings, I don’t find a difference.

    Hope you can help me.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Access Violation with VS2008

    Quote Originally Posted by Takatschio View Post
    Hope you can help me.
    If you would tell us what error message you get.

  3. #3
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Access Violation with VS2008

    When I run this code in debug mode, this error occurs:

    Windows has triggered a breakpoint in VS2008Test.exe.
    This may be due to a corruption of the heap, which indicates a bug in VS2008Test.exe or any of the DLLs it has loaded.
    This may also be due to the user pressing F12 while VS2008Test.exe has focus.
    The output window may have more diagnostic information.

  4. #4
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Access Violation with VS2008

    I found the problem. It seems to be a problem with the self compiled commercial Qt-Versions which i used. With the opensource versions built by Trolltech all works fine.

Similar Threads

  1. QModelIndexList access reading violation
    By Daxos in forum Qt Programming
    Replies: 3
    Last Post: 30th June 2010, 08:32
  2. Replies: 6
    Last Post: 17th March 2010, 10:53
  3. OpenCV causes access violation only during timerEvent
    By derekkingston in forum Qt Programming
    Replies: 5
    Last Post: 19th February 2010, 08:56
  4. Access violation when reading big text files
    By robertson1 in forum General Programming
    Replies: 0
    Last Post: 18th September 2008, 06:59
  5. Access Violation on Signal Emit
    By khagzan in forum Qt Programming
    Replies: 2
    Last Post: 25th September 2007, 22:51

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.