Is memory from primitive data types (int, char, etc.) immediately released after they leave the scope or added to the garbage collection for a later version?
consider the following issues:
For x as integer=0 to 1000 dim y as integer Next
If this does not add 1000 integers to the garbage collector for cleaning later, how does it handle string objects? will this create 1000 lines to clear later?
For x as integer=0 to 1000 dim y as string="" Next
What about structures that contain only int, string, etc. data types.
Classes containing only managed resources?
source share