Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl Display memory usage 
	
		
		
			| ArrayCtrl Display memory usage [message #43976] | 
			Fri, 05 December 2014 09:18   | 
		 
		
			
				
				
				
					
						  
						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
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 08:54:38 CET 2025 
 Total time taken to generate the page: 0.09851 seconds 
 |