944,113 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1883
  • C++ RSS
Jun 8th, 2006
0

StringGrid, releasing of memory

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CharlesTeck is offline Offline
4 posts
since Jun 2006
Jun 9th, 2006
0

Re: StringGrid, releasing of memory

How about using a vector of strings, or using new and delete[], to free up the memory.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jun 12th, 2006
0

Re: StringGrid, releasing of memory

Quote originally posted by iamthwee ...
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[]?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CharlesTeck is offline Offline
4 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: doubt about header file implementation
Next Thread in C++ Forum Timeline: list template, release of memory





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC