A
AU Gridlock
Guest
Hi, in my code there are many variables declared Private and public
Private lst as list (of string)
Private lst as list (of integer)
Private lst as list (of list (of integer))
.....
I have about 10 such variables (object type) ,it's expensive to load them, so I have them private
, I also put form.hide instead of form.close to load faster.
At first, the code ran smoothly, but I didn't know what the reason was (the number of their elements didn't change but then the code was laggy and slow.
What do I need to do to fix this problem? such as
list = nothing
list = new list (of string)
Does list = nothing work now?
Or I just need
list = new list (of string)
....
Gc.collect ()
Please give me advice!
Continue reading...
Private lst as list (of string)
Private lst as list (of integer)
Private lst as list (of list (of integer))
.....
I have about 10 such variables (object type) ,it's expensive to load them, so I have them private
, I also put form.hide instead of form.close to load faster.
At first, the code ran smoothly, but I didn't know what the reason was (the number of their elements didn't change but then the code was laggy and slow.
What do I need to do to fix this problem? such as
list = nothing
list = new list (of string)
Does list = nothing work now?
Or I just need
list = new list (of string)
....
Gc.collect ()
Please give me advice!
Continue reading...