StringGrid, releasing of memory

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2006
Posts: 4
Reputation: CharlesTeck is an unknown quantity at this point 
Solved Threads: 0
CharlesTeck CharlesTeck is offline Offline
Newbie Poster

StringGrid, releasing of memory

 
0
  #1
Jun 8th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: StringGrid, releasing of memory

 
0
  #2
Jun 9th, 2006
How about using a vector of strings, or using new and delete[], to free up the memory.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 4
Reputation: CharlesTeck is an unknown quantity at this point 
Solved Threads: 0
CharlesTeck CharlesTeck is offline Offline
Newbie Poster

Re: StringGrid, releasing of memory

 
0
  #3
Jun 12th, 2006
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[]?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC