954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

StringGrid, releasing of memory

I am having a problem with a StringGrid in BuilderC++. The help file says that the RowCount and ColCount manage the size of the StringGrid. My problem is that it only consumes more memory and never releases any memory, even if I set the RowCount and ColCount to 1,1. I am using the StringGrid to display a 2 dimentional table of data and it can have upto 50000 rows, if the user so desires. If the user saves the data and starts with a few rows of data the StringGrid should release the unused memory once RowCount is decreased, but this does not happen.

CharlesTeck
Newbie Poster
4 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

How about using a vector of strings, or using new and delete[], to free up the memory.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 
How about using a vector of strings, or using new and delete[], to free up the memory.

I am not sure I understand you. If I use a vector of strings how do i display the info? If I use the new and delete[] how would I do that, excuses my ignorance, as there in no documentation on how to use new and delete[]?

CharlesTeck
Newbie Poster
4 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You