472,119 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

debug assertion failed!

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?

Nov 16 '05 #1
4 13398
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

"ellieong" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
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?

Nov 16 '05 #2
the problem seems to be at the function ElementAt but i
can't seem to understand what the error is. Please
help..!!!

-----Original Message-----
Look at what the assertion says and work backwards (in the call stack) tofix the reason your code is firing this assert.

Ronald Laeremans
Visual c++ team

"ellieong" <an*******@discussions.microsoft.com> wrote in messagenews:01****************************@phx.gbl...
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?

.

Nov 16 '05 #3
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

"ellieong" <an*******@discussions.microsoft.com> wrote in message
news:f5****************************@phx.gbl...
the problem seems to be at the function ElementAt but i
can't seem to understand what the error is. Please
help..!!!

-----Original Message-----
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

"ellieong" <an*******@discussions.microsoft.com> wrote

in message
news:01****************************@phx.gbl...
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?

.

Nov 16 '05 #4
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?
-----Original Message-----
Invalid index would be a quick guess. But your question as stated goesbeyond what normally works well being addressed in a newsgroup if you can'tbe a few orders of magnitude more specific.

Ronald

"ellieong" <an*******@discussions.microsoft.com> wrote in messagenews:f5****************************@phx.gbl...
the problem seems to be at the function ElementAt but i
can't seem to understand what the error is. Please
help..!!!

>-----Original Message-----
>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
>
>"ellieong" <an*******@discussions.microsoft.com> wrote

in message
>news:01****************************@phx.gbl...
>> 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?
>>
>
>
>.
>

.

Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by w3r3w0lf | last post: by
2 posts views Thread by Arti Potnis | last post: by
2 posts views Thread by karspy | last post: by
4 posts views Thread by Mullai | last post: by
1 post views Thread by jerry | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.