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 » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl Display memory usage
ArrayCtrl Display memory usage [message #43976] Fri, 05 December 2014 09:18 Go to previous message
crydev is currently offline  crydev
Messages: 151
Registered: October 2012
Location: Netherlands
Experienced Member
Hello,

I have been using the Display classes of U++ extensively to color rows in my ArrayCtrl. However, I am experiencing excessive memory usage when I keep setting the Display of a row/cells continuously. The memory is growing very fast. I thought only a pointer to the Display class is saved. Am I wrong? Is there a way to replace/clear the Display before resetting it? Maybe there even is an error in the code I am using:

void CrySearchArrayCtrl::SetRowDisplay(int i, const Display& d)
{
	const int rowCount = this->GetCount();
	const int colCount = this->GetColumnCount();
	if(i >= 0 && i < rowCount)
	{
		for (int j = 0 ; j < colCount; ++j)
		{
			this->cellinfo.At(i).At(j).Set(d);
		}
	}
	
	this->RefreshRow(i);
}


Thanks a lot!

crydev
 
Read Message
Read Message
Read Message
Previous Topic: Virtual arrays and buttons.
Next Topic: How to change column's name in ArrayCtrl
Goto Forum:
  


Current Time: Fri Apr 26 05:57:41 CEST 2024

Total time taken to generate the page: 0.05177 seconds