FastReport VCL Enterprise V6.4.2 Full Source Retail Edition bittber
I am using freport VCL Enterprise 6.4.2, and I have some problems with using a.NET generic list and (to do with) its size. In general I have a generic list of T in a class, as such: TList MyList; This works fine with 1000 elements. When I add another element to the list, the memory occupied by the list is doubled. If I have 1000 elements and delete some, I have then 2000 elements and the allocated memory remains the same. This can be seen in VCL memory usage, but not in the VCL Designer. There are 3 components in the VCL Designer, none of which show the list in use. What is the matter here? A: I suspect that VCL is not allocating space for the new elements, only for the old ones. I don't have a computer at hand right now to test this, so take it with a grain of salt. The designers of the VCL probably didn't anticipate this behavior. Well, I don't have any professional experience with VCL, so I can't be sure. If I add another element to the list, the memory occupied by the list is doubled. This is not the case. You create a single object, which is the object that holds the list, with a single element. You then add that single element to the list. The same single object holds the list, but now with two elements. With TList you would have to create a new object to hold the second element. If you want to know how much memory the list takes up, you should enable memory allocation debugging and use the ListView on the Analyze window. Young v. Thompson Young v. Thompson, 323 U.S. 1 (1944), was a United States Supreme Court case in which the Court decided whether a state employee could be discharged for refusing to appear at a "closed hearing,"