G
Guest
My program has several global arrays declared but not sized: Public Shared A
As Double(,), Public Shared B As Double(,), etc.
As methods are called the arrays are sized as appropriate for specific
circumstances. As time goes by, memory gets used and things sometimes bog
down. I would like to be able to reset my program to its initial state with
some kind of "clear" subroutine.
I have tried something like this:
Dim blank(1, 1) As Double
A = (blank)
B = (blank)
C = (blank)
And it helps but doesn't really do enough sometimes and I have to quit and
start-up again.
Is there a way to reinitialize everything without closing the application
and starting up again?
As Double(,), Public Shared B As Double(,), etc.
As methods are called the arrays are sized as appropriate for specific
circumstances. As time goes by, memory gets used and things sometimes bog
down. I would like to be able to reset my program to its initial state with
some kind of "clear" subroutine.
I have tried something like this:
Dim blank(1, 1) As Double
A = (blank)
B = (blank)
C = (blank)
And it helps but doesn't really do enough sometimes and I have to quit and
start-up again.
Is there a way to reinitialize everything without closing the application
and starting up again?