debug assertion failed!

  • Thread starter Thread starter ellieong
  • Start date Start date
E

ellieong

When i try to run my program, i get this error
"debug assertion failed!" and it's caused by this file
called "afxtempl.h" at line 262. isn't this header file
provided by c++? so how can i get rid of this problem. if
i click ignore i can see the output, but how can i get
rid of such an error msg?
 
Look at what the assertion says and work backwards (in the call stack) to
fix the reason your code is firing this assert.

Ronald Laeremans
Visual c++ team
 
the problem seems to be at the function ElementAt but i
can't seem to understand what the error is. Please
help..!!!
 
Invalid index would be a quick guess. But your question as stated goes
beyond what normally works well being addressed in a newsgroup if you can't
be a few orders of magnitude more specific.

Ronald
 
the nIndex and the m_nSize is the same. Are they sypposed
to be different in order to assert? in which case how can
i go about changing it?
 
Back
Top