Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » DocEdit call RemoveLines make Assertion failed.
Re: DocEdit call RemoveLines make Assertion failed. [message #14470 is a reply to message #14450] Wed, 27 February 2008 03:55 Go to previous messageGo to previous message
HenryXin is currently offline  HenryXin
Messages: 10
Registered: February 2008
Promising Member
Thank for your reply.
But I try it only using line.Remove(0, remove_num);
But Fatal Error:
Assertion failed in C:\upp\uppsrc/Core/Vcont.h, line 17
i >=0 && i < item.

I read the code:
DocEdit inherit from TextCtrl has the memeber:
Vector<Ln> line;
and it defines its member:
Vector<Para> para;
So only call line.Remove(), when call the parm.Remove()?
And the void DocEdit::RemoveLines(int line, int count) is strange?
void DocEdit::RemoveLines(int line, int count)
{
para.Remove(line, count);
ASSERT(this->line.GetCount() == para.GetCount());
}
It removes para, but check the line == para?

Best Regards
Henry
 
Read Message icon9.gif
Read Message icon7.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: Best way to implement a two-way LineEdit
Next Topic: Enter time as duration
Goto Forum:
  


Current Time: Mon Apr 29 03:01:59 CEST 2024

Total time taken to generate the page: 0.14283 seconds