title: qt ASSERT failure in QList<T>::at: "index out of range"
body: <p>I am still relatively new to Qt and I have recently been working on a large project. When I attempt to run the project I get this error: </p>
  
  <pre><code>ASSERT failure in QList&lt;T&gt;::at: "index out of range", file c:\qt\qt5.3.0\5.3\msvc2013_64\include\qtcore\qlist.h, line 479
  </code></pre>
  
  <p>Just wondering if anyone knows what this means or how I might go about tracking down the source of the problem?</p>
  
  <p>[edit] I believe that the addition of this code is causing the error </p>
  
  <pre><code>autAtom *aP = new autAtom(Principal);
      autAtom *aQ = new autAtom(Principal);
  
      autData *P = new autData (DataAtom, aP);
      autData *Q = new autData (DataAtom, aQ);
      autData *X = new autData (AnyData);
  
      AUTPostulate *p;
      autStatementList preList;
  
  
      {
          preList.clear();
          //autData *d1 = new autData(NotHereData, X);
          autStatement *pre1 = new autStatement(aP, believes, X);
          autStatement *goal = new autStatement(aP, sees, X);
          preList.append(pre1);
          p = new AUTPostulate("BS", BS, goal, preList);
          cout &lt;&lt; "" &lt;&lt; p-&gt;getString().toStdString() &lt;&lt; endl;
          AUTPostulates.append(p);
  
      }
  </code></pre>
  
  <p>When this is taken out the tool runs fine.</p>