assertion error

Posted on 2009-03-30
Last Modified: 2013-12-14

I am getting error on this
assert(cellPosX < m_pageWidth);
Error --> Assetion Failed.
Question by:KaranGupta
  • 2
  • 2
LVL 19

Accepted Solution

alb66 earned 250 total points
ID: 24016931
It means that cellPosX is >= m_pageWidth
LVL 31

Assisted Solution

Zoppo earned 250 total points
ID: 24016934
Hi KaranGupta,

this assertion happens because cellPosX is equal or greater than m_pageWidth.

Where does the error occur? Is it your own source code?

LVL 31

Expert Comment

ID: 24016935
Sorry alb66, you were faster ...
LVL 19

Expert Comment

ID: 24016945
Hey Zoppo, don't worry... I think we press submit at the same time... ;-)

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question