Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QVector Assert statement seems to fail?
Forum Updated to NodeBB v4.3 + New Features

QVector Assert statement seems to fail?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 811 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qttester5
    wrote on last edited by
    #1

    Check out this debug screen when a QVector assertion failed:

    "https://www.dropbox.com/s/c2njba94hoimchv/qtvector.png":https://www.dropbox.com/s/c2njba94hoimchv/qtvector.png

    (having problems getting my image to post)

    The assertion requires "i" to be between 0 and the size of the vector, which makes sense.

    This assertion failed when "i" was in fact meeting that criteria. Can anyone see a problem here?

    1 Reply Last reply
    0
    • X Offline
      X Offline
      Xander84
      wrote on last edited by
      #2

      Maybe you can show us the code where the assertion fails?
      I don't believe that it will just fail with every vector when you try to access a valid index..

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qttester5
        wrote on last edited by
        #3

        I'm more interested in the meaning of this debug screen. Am I reading it right? It seems to clearly suggest the assertion failed (hence the crash I got) even though the variables recorded in the debugger (the "i" variable) are not conflicting with the what the assert statement requires, since "i" was clearly between 0 and the size, also recorded there in the debug screenshot.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved