473,385 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 13538
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chemix | last post by:
Hello people, I've developed a windows forms application with VC++.NET. The problem I have is the next: I run my application and all seems go OK, but passed a certain time (it can be hours or some...
6
by: Cormac | last post by:
Hi everyone, I'm writing Pure Data externals in C++ using Ms Visual C++ 7.0 and Windows2000. I'm running motions sensor hardware so there's a bit of real time data processing involved. When...
2
by: w3r3w0lf | last post by:
hello! can anyone explain this to me? I get a "debug assertion failed" msg after some time in my prog...: file fclose.c, stream!=null thanks!
2
by: Arti Potnis | last post by:
Hi, I have an application with a function "myfunction" that opens a file and writes to it using fprintf. This application runs on a unix (sun solaris 5.8) system. I connect to this application...
0
by: lawrence | last post by:
Hi, I made a MFC ActiveX with a CwinThread Class in VC ++. Then i used it on Visual basic. When i try to make an exe i got this error : Debug Assertion Failed! Program: C:\PROGRAM...
2
by: karspy | last post by:
In my COM Server i have added Dialog Box. i have registered OCX file and added that Activex Control to my Project also. It has created 1 header file and 1 source file. After that i have created...
4
by: Mullai | last post by:
Hi , My program gives an error message like this Debug Assertion Failed! program:................ File: wincore.cpp Line: 958 Please can anyone help me out in this issue. I have to solve...
2
by: Pushpa | last post by:
Hi All, This my part of the c++ program using threads in windows : //modified by pushpa struct structExrdDoc { CExrdDoc* spDoc; LPCTSTR sstrFileName;
1
by: jerry | last post by:
i have a problem: when i run a program,it pop up a windows,title is microsoft visual c++ failed! contents are: program: ...io\myprojects\phonebook\debug\phonebook.exe file:fopen.c line:54...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.