debug assertion failed!

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?
 
R

Ronald Laeremans [MSFT]

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
 
E

ellieong

the problem seems to be at the function ElementAt but i
can't seem to understand what the error is. Please
help..!!!
 
R

Ronald Laeremans [MSFT]

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
 
E

ellieong

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top