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
0
Newbie Poster
Recommended Answers
Jump to PostHow about using a vector of strings, or using new and delete[], to free up the memory.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.