| | |
StringGrid, releasing of memory
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2006
Posts: 4
Reputation:
Solved Threads: 0
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.
•
•
Join Date: Jun 2006
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by iamthwee
How about using a vector of strings, or using new and delete[], to free up the memory.
![]() |
Similar Threads
- Some memory leakage.. (C)
- Another question regarding memory (C)
- Releasing Memory (Windows 95 / 98 / Me)
Other Threads in the C++ Forum
- Previous Thread: doubt about header file implementation
- Next Thread: list template, release of memory
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






