*
pe***@mclinn.com (Peter) scripsit:
I have a program that uses multiple arrays and the memory useage is
huge. After a proceedure ends is there a good way to shrink down an
array's size. The same for variables.
If the array is declared inside the procedure, like:
\\\
Public Sub Foo()
Dim astr() As String
...
End Sub
///
.... it's ready to be destroyed by the Garbage Collector when the
procedure is left. Notice that there is no deterministic cleanup in
..NET, so task manager may show wrong results of what amount of memory is
really used by your app's "living" objects.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>