![]() ![]() | ||
If you read the Visual Basic documentation, you'll read a lot about how you have no control over when garbage collection happens. But it's a little-known fact that you do have control over this if you want it. All you have to do is to go behind the scenes to the garbage collector namespace (which is GC) and use the Collect method:
System.GC.Collect()
![]() ![]() | ||